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?

Similar Messages

  • 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

  • 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.

  • 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.

  • 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.

  • 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.

  • Where are the API Docs of the appserv-rt.jar classes and others?

    Where do I find the API Documentation/Specification for the classes of :
    com.iplanet ...
    com.sun.appserv ...
    com.sun.enterprise.security ...
    The very of appserv-rt.jar and appserv-rt-ee.jar
    I need it for AS7 (J2EE 1.3) and AS8 (J2EE 1.4).
    Something like http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html would be nice

    For AS8, the docs subdirectory under your installation directory will have javadocs for all classes in com.sun.appserv and javax... namespace.
    For AS7, what is it that you are specifically looking for?
    In general, com.sun.enterprise... classes are not documented. There are exceptions and you should be able to find them in developer's guide.
    Finally, you might want to look at the source code in the Open Source Application Server project GlassFish (http://glassfish.dev.java.net).

  • About tools.jar path

    Hi
    What is the path for tools.jar
    Where should it place in Tomcat folder
    Give path in detail.
    Thanks in advance

    Hi, I have a problem using the getProperty("user.dir") in a jPanel; in main when I run it works fine; but i need the directory to draw a image in the Jpanel so when i try to use this without running when I'm drawing a menu it returns not the class directory but my netbeens directory. Help me, cause I'm new in this lands.
    Edited by: Pedro_G on Jan 6, 2008 11:45 AM
    Edited by: Pedro_G on Jan 6, 2008 11:51 AM
    Edited by: Pedro_G on Jan 6, 2008 11:52 AM

  • Detecting Tools.jar

    I need to make sure that the Tools.jar is in the Classpath of the Clients machine as I am using classes from suns package. Can do this before the exception is thrown while my applicaton loads?

    I need to make sure that the Tools.jar is in the
    Classpath of the Clients machine as I am using classes
    from suns package. Can do this before the exception is
    thrown while my applicaton loads?Huh? What do you mean - before your application loads? That certainly isn't possible. If your application isn't loaded then exactly what would tell you that it wasn't there?
    Unless you want to write another java application that runs before the real one. You would have to do some scripting then (which is outside of java) so that the second app fails if the first one does.
    Now if you want to test for it in your application then you just try to use something from it. And catch the class not found exception. And exit your application.

  • Include rt.jar class files in my own jar file to run 1.2+ applets on MS JVM

    My problem is this. I'm writing an applet (which includes 1.2 classes) for my organization (over 2000 NT workstations) in which no one has administrative privelages to install Sun's JRE 1.2 or greater. The target browser is IE 5. Our NT admins are having problems pushing the JRE out so my only two options are to rewrite everything as 1.1 or somehow include the missing class files from rt.jar.
    I really do not want to rewrite it all!
    I was able to extract the missing class files (i.e. /java/util/HashMap.class) but I cannot figure out how to get the IE JVM to use them. Things I have tried:
    1. jarred up all my class files along with the missing classes from rt.jar.
    $ jar cvf test.jar *.class java
    added manifest
    adding: ArrayObj.class(in = 731) (out= 448)(deflated 38%)
    adding: DivMonGrid.class(in = 1509) (out= 812)(deflated 46%)
    adding: GridLayout2.class(in = 2720) (out= 1514)(deflated 44%)
    adding: Item.class(in = 317) (out= 232)(deflated 26%)
    adding: Row.class(in = 588) (out= 365)(deflated 37%)
    adding: Screen.class(in = 672) (out= 416)(deflated 38%)
    adding: Site.class(in = 545) (out= 360)(deflated 33%)
    adding: divmonDash.class(in = 12506) (out= 6892)(deflated 44%)
    adding: java/(in = 0) (out= 0)(stored 0%)
    adding: java/util/(in = 0) (out= 0)(stored 0%)
    adding: java/util/HashMap.class(in = 6668) (out= 3461)(deflated 48%)
    adding: java/util/HashMap$1.class(in = 931) (out= 513)(deflated 44%)
    adding: java/util/HashMap$2.class(in = 800) (out= 454)(deflated 43%)
    adding: java/util/HashMap$3.class(in = 1608) (out= 904)(deflated 43%)
    adding: java/util/HashMap$EmptyHashIterator.class(in = 592) (out= 358)(deflated 39%)
    adding: java/util/HashMap$Entry.class(in = 1505) (out= 775)(deflated 48%)
    adding: java/util/HashMap$HashIterator.class(in = 1814) (out= 1096)(deflated 39%)
    $ jar -tf test.jar
    META-INF/
    META-INF/MANIFEST.MF
    ArrayObj.class
    DivMonGrid.class
    GridLayout2.class
    Item.class
    Row.class
    Screen.class
    Site.class
    divmonDash.class
    java/
    java/util/
    java/util/HashMap.class
    java/util/HashMap$1.class
    java/util/HashMap$2.class
    java/util/HashMap$3.class
    java/util/HashMap$EmptyHashIterator.class
    java/util/HashMap$Entry.class
    java/util/HashMap$HashIterator.class
    RESULT: IE JVM complains classnotfoundexception (its complaining about not finding HashMap.class)
    2. Tried to just place missing *.class files in same directory as my class files
    RESULT: Compiler error (complaining about file not be in correct path package) I understand this because when it was created the package statement has the class file in java/util/.
    If anyone has done this before or knows how to do it, please help me out.
    Thanks!

    When the collection classes first came out, I think they were available in a separate jar (although the package name may be slightly different). If it's just collection classes, that might be worthwhile looking at.
    The MS JVM may be spewing because the class format is too new; you may try with rt.jar classes from an older JVM (such as JDK 1.2), or try to recompile them from source using -target 1.1.

  • How to import custom java jar/class into oracle to be used in java proc ?

    Hi
    I would like to know how to import custom java jar/class files into oracle to be used in java stored procedure.
    I am developing a oracle pl/sql procedure to call java program. The java program will be created as procedure and will be published.
    But, my question is that I do have a other external jar/class file that need to be imported into this java program.
    example
    raise_sal.java
    import java.util.*;
    import oracle.sql.*;
    <<reference other java programs >>
    import cmpmsgsvc.xxxx.* ;
    import cmpmsgsvc.yyyy.* ;
    import cmpmsgsvc.zzzz.* ;
    how do I import the cmpmsgsvc jar/class file into oracle so that I don't have any
    compilation errros on raise_sal.java program ??
    what are the steps to import/compile and validate to do this?
    thanks for your help in advance.
    Thanks
    rrb.

    Kuassi
    Problem is that, I have 6 jar files that are needed to be included in the main java program. And, there are more than 50+ classes, propertiers in those 6 jar files.
    It might be not good idea to have all those 50+ classes in the production database.
    Is there anyway that I keep all those 6 jar files in unix box (our's is oracle erp installation with oracle being installed on unix box) and just refer them in the main java program. I mean database will be loaded with main java program and it should able to refer other 6 jar files from unix.
    if we create a directory and keep all jar files in there and include that directory in classpath variable, does this works? or what is other method?
    Please let me know.
    Thanks

  • 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.

  • Oracle Forms: Technical Documentation Generator Tool (FoReDoclet, HTML)

    Dear Oracle Forms Developers,
    Nostran Computing has released FoReDoclet, our technical documentation generator tool for Oracle Forms:
    Technical features:
    - Generates HTML documentation about form, menu, PL/SQL library and object library source files similarly to JavaDoc.
    - Uses the Comment property of internal objects (blocks, parameters, alerts)
    - Parses pl/sql elements (procedures, functions, packages, triggers) as well as standard internal elements.
    - The generated HTML documentation is highly customizable by style sheets or direct template modification.
    - Accepts HTML codes in Comments property fields and PL/SQL comment blocks.
    Business benefits:
    - Eliminates the need of writing separate technical documentation, works directly from the source.
    - Provides a low-cost and efficient way of producing high-quality technical documentation for Oracle Forms based applications.
    For details, see: http://www.nostran.com/products/foredoclet

    HI Arun
    where can we get this forms documentation?
    Thankyou
    Sasi

  • Documentation of the Navigator Class, Picklist,  & Wizard Class

    Documentation of the Navigator Class, Picklist, & Wizard Class
    May I have a copy of the oracles documentation on how to create a navigato, picklist and the wizards class based on the stnd20**.olb
    i will appreciate it much.
    thank you.
    [email protected]

    I don't think there is a documentation on this.
    Just download the demos from OTN and look at the source for the fmb's that use those.
    (By the way it is good enough to send your question once :-)

  • 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.

Maybe you are looking for

  • How can you get an ipod touch out of recovery mode?

    I have gone through the various trouble-shooting guides and nothing seems to work. The ipod does not appear in Computer, checked the cable, my iphone does appear. It is detected by itunes as being in recovery mode but no serial no appears in box, I c

  • What exactly ARE the .pkg files that collect in the 'Receipts' folder?

    Hi there all. Those .pkg files that collect in HDD>Library>Receipts. What exactly ARE these packages for? How do they tie in with Disk Utility's 'Repair permissions' option? Why do we need to keep them? It's all Unix to me ;0)

  • Help with XML gallery

    I have created a picture gallery which is controlled by thumbnails. Now I wanted to add a function to open the picture showing, in seperate window, when it is clicked on. But I can't figure this xml out, someone please help me.

  • "print won't fit paper"

    I attempted to print a photo from iPhoto and was met with this message in red: "The selected print size will not fit the current paper size". No matter what size paper I select,4X6, 8X10 or letter it doesn't change. Then if I proceed anyway the next

  • Temporary Hand Tool is not working when Firefox is open

    Hi guys Hopefully some of you can help me with a problem that has annoyed me for quite some time now.. Quite often my temporary hand tool (accessed by pressing the space bar) is not working which causes me to move objects instead of panning around my