Is tools.jar portable?

Is tools.jar portable across different platforms or is each tools.jar specific to an OS and architecture?
Thanks!

define "portable"...
The classes will likely work on all Sun JVMs of the same build number.
They might even work on Sun JVMs with different build numbers.
They very likely will not (fully) work on non-Sun JVMs with any build number.

Similar Messages

  • Tools.jar Source Code

    Hello
    I am working on Multi Rebinding and Component mobility in a component programming framework.I need the source code of Tools.jar from where i can download the code of tools.jar. I have download the the Java SE 6 source code but i need the code of tools.jar

    It's in the SCSL source code, but why do you think you need it?
    And you don't need tools.jar at all for RMI.

  • Tools.jar: how to use it?

    in my app, I use some classes of tools.jar
    but I can not find the jar file in JRE directory, which is only in JDK directory.
    if I distribute my app to customers, they can not use it, because they possiblly only installed JRE rather than JDK.
    so how to use tools.jar?

    Isn't tools.jar the JDK tools, e.g., javac, javap, etc.?
    What are you doing that requires those tools, such that your customer needs it?
    Secondly are you sure that Sun's license allows you to distribute the stuff in tools.jar?
    It seems like the only solutions would be to refactor your code to no longer use tools.jar, or tell your customers that they have to install the JDK themselves (I've seen other products do that), or to possibly get a special license from Sun.

  • After alien -i j2sdk-1_4_2_10-linux-i586.rpm,why have no tools.jar?

    there is not tools.jar in JAVA_HOME/lib,but have "tools.pack" file and executable "unpack" file,but I dont know how to do?
    when I test javac command,but have below error;
    debian:~/Desktop# javac Test.java
    Error occurred during initialization of VM
    java/lang/NoClassDefFoundError: java/lang/Object
    help me!

    I install on Linux using the 'bin' distribution rather than the 'rpm' distribution.

  • Can I redistribute tools.jar?

    My company has developed an application in which we generate a .java source code file, use the com.sun.tools.javac.Main class to compile it, dynamically load the compiled .class file, and then used the loaded object to do interesting things.
    So for our application to work, we need to distribute a compiler along with it. I'd like to just use the com.sun.tools.javac.Main class for this, but it's not a standard part of the JRE. It's contained in the <jdk dir>/lib/tools.jar file. I can't find anything in the JDK license about redistributing this tools.jar file.
    Does anyone know if it's OK to redistribute the tools.jar file with your own application? Or is there another compiler that's better to redistribute with your own application?

    Normally, you can distribute the JRE which contains tools.jar.
    You can also ask Sun for permission to include the file in your product, permission which may or may not be given.
    Given that your application is a direct competitor to the JDK itself there may be problems though as Sun does not generally permit competitors to leech off their work as I'm sure you can understand.

  • Javac and tools.jar

    I'm having real trouble upgrading from 1.1.8 and getting on with tutorials. In summary SuSE 7.3 said it was installing java 1.2 however -version said I was running 1.1.8. I could not use swing components so I tried installing 1.4. I had problems getting that going but have now managed to sort out the classpath so that -version is 1.4.0.
    Unfortunately now javac now gives me command not found. I have had a read of material and see I should have a path to tools.jar. There is one in 1.3.1 should I also set a path to that but more importantly have I not got all that I need by downloading 1.4.0, if not what else should I have downloaded and installed.
    Help please all I wanted to do was learn java but I can't get going
    Richard

    Hi, how silly of us not to notice... that PATH command needs to point to the /bin directory in your jdk... /usr/java/j2re1.4.0/bin ...So sorry not to noticed that right off!
    Its good to set a JAVA_HOME environment variable, and then you can just use:
    export JAVA_HOME=/usr/java/j2re1.4.0
    export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar
    export PATH=$PATH:$JAVA_HOME/bin
    Other things (like tomcat and stuff) will find that JAVA_HOME variable and things will install better in the future. Watch too, you had a space before /lib (likely a typo in the post?) If that fails ...cd into that bin directory ...if still there is no javac ...something went wrong with the install!
    Good luck with this, we will watch for your success.

  • Tools.jar did not install with 1.4

    My old machine, with the 1.3 SDK, had tools.jar. Unfortunately, that machine crashed and burned. I downloaded 1.4 onto my new computer, but there is no tools.jar (I use Jedit and it needs it for its compiler plug in). Did I neglect to download something else? I should also note that there is no /lib dir off of my /bin dir. I'm running XP Home. Thanks.
    RON

    Do tell us more about what kind of exceptions that are thrown.
    I also have a problem with applets running fine with java plug-in 1.3, but 1.4.x does not work very well.
    The problem I seem to have is that the jar isn't cached because there is no expiration date or last modified date.
    There is a reported bug about cashing with Java plug-in 1.4. I'm afraid that I can't find it right now though...
    / Clarence

  • Documentation of tool.jar classes?

    Is there any documentation of the classes located in the JDK's tools.jar? I'm considering writing my own editor, and it'd be very useful to know exactly what I have to work with in terms of interacting with the JDK. I've looked around a bit, and I haven't been able to turn up anything.

    I did, well, two of them anyway. Too big. Too complex. Too long a learning curve. Not all the features I'd like. Not simple enough.
    I'm currently using Crimson Editor. I was using TextPad. My teacher last year told us to download the "free" version. Truth be told, it's an evaluation version, not free. When I got a new computer, I just didn't want to rip off the people who made TextPad. So I tried out NetBeans. Slow, extremely complex. Scrapped it. Tried jEdit. Less complex, but still not what I wanted. Mainly, I wanted easy project management which it just plain didn't provide, and I didn't feel like hunting down a good plug-in. I considered trying to write my own plug-in, but the code made very little sense. That may be because I'm used to very object oriented (as in I was brought up in programming by Java). Anyhow, thne I tried BlueJ. Crud. Scrapped it. Found Crimson, and am fairly satisfied with it, but...
    I'm interested in making a Java editor for dummies, so to speak. ^_^ I want to cut out dealing with the command line stuff. Setting the classpath every time I want to compile or run the program/leaving it permanently set inside a tool, an easy to deal with error system for compilation, a simple jar/zip maker, and other stuff. To do that, I need to know what I have to work with inside the JDK. Hence, the need for documentation. I was actually trying to make a program that would read and analyze all the classes but ran into rather annoying problems, and I'll probably just do that if there isn't any documentation on what's inside tools.jar.
    bangs head on wall Ooooohhhhh. You mean look inside those programs to see how they deal with calling javac. A good idea, but if Sun has something, I'd rather use that. Thanks. I appriciate the suggestion. I have a feeling that will come in handi.
    It occured to me that running javadoc would be easier than what I'm trying to do. Will javadoc work on pure class files, no source files?

  • Missing class file from tools.jar file!

    I have been playing around with the code:
    import com.sun.tools.javac.v8.JavaCompiler;
    import com.sun.tools.javac.v8.util.Context;
    import com.sun.tools.javac.v8.util.List;
    public class Compiler {
    public static void main(String[] args) {
    JavaCompiler compiler = new JavaCompiler(new Context());
    List list = new List();
    list = list.append("Hello.java");
    try {
    list = compiler.compile(list);
    } catch (Throwable t) {}
    I am running into a problem with the statements:
    import com.sun.tools.javac.v8.util.Context;
    JavaCompiler compiler = new JavaCompiler(new Context());
    The compiler tells me that Context does not exist. I checked the tools.jar file
    and sure enough Context did not exist! Can somebody point me in the right direction as to what I can do to fix this problem!
    Thanks

    Put the jar in your class path.

  • Re to Deepak-i included tools.jar its giving error

    i included set path="/tools.jar" to startWeblogic.cmd this is th error i get
    plz help
    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://localhost:7001: Destination unreachable; nested exception is:
         java.net.SocketTimeoutException: Read timed out; No available router to destination]

    Are the environment properties set?
    Set
    Hashtable env = new Hashtable(5);
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://localhost:7001";
    InitialContext ctx = new InitialContext(env);

  • Tools.jar for Java SE Embedded

    Hi all,
    I believe Java SE "for Embedded" supports JVMTI,
    but tools.jar is not found in any builds such as for ARM and x86.
    Without that, the instrument or attach API defined in JVMTI
    is not able to work on Java SE for Embedded.
    Any suggestion would be appreciated.
    Thanks in advance.

    Well, I would guess that questions about embedded java would be ok here, questions about J2ME programming would be better suited for the "CLDC and MIDP" forum and Java SE questions would be better someplace here. But don't expect too much, there is not a lot of activity in the forum ...

  • Java Source for the tools.jar class files?

    Hi
    I'm writing custom taglets within an IDE. It would be great if I could find the source for files in tools.jar. Right now I'm a bit hindered by the lack of method specifications I would get if I had the source code.
    I'm especially interested by the Tag class methods
    Thanks

    Hi,
    Tag (and everything else in com.sun.javadoc) is an interface, so there are no class (static) methods.
    What was it you were wanting to do or to know?
    Bruce

  • Licensing issues with altered tools.jar

    Hello,
    I wanted to know, if it would be permitted if I would ship an edited tools.jar with my application.
    I would not charge my customer for the original Java-source code, I would also include the license-files that come along with the tools.jar and I would even make the affected code available publicly. Would that be enough or is it simply prohibited?

    Hi,
    Note that your version of Ubuntu is beta and we don't support beta software. This means that even if the problem exists and is reproducible we would wait for the open source team to release a production version.
    Frank

  • Where is the tools.jar locate?

    ??,i cant find it at jdk bin ,or jre bin too?

    im assuming your operating system has a SEARCH feature?
    (1) open windows explorer
    (2) navigate to the C: drive
    (3) right click
    (4) choose "search"
    (5) type in "tools.jar"
    (6) wait
    heres a hint: its in C:\Program Files\Java\jdk1.6.0\lib

  • Ant error "unable to locate tools.jar"

    I always have this error when I use ant [http://img841.imageshack.us/img841/4994/ant.png]. It states that the tools.jar is in the JRE directory but I checked the register and the value is set to the JDK.
    What can be the problem?

    I've only seen that error on systems that had only the runtime installed.
    check the ant docs for info on
    1) that error.
    2) JAVA_HOME (???)
    I'm thinking that they are related but I not so sure if that is the correct environment variable.
    Another thing just ocurred to me.
    If you have installed Java multiple times on you system, Ant might be picking up one that that is JRE only. The Ant docs should help in that case as well.
    You could check to see if java and javac report different versions and/or if they are in different directories.

Maybe you are looking for