Jar provenance

Howdy,
I've been experiencing Java's version of good 'ole DLL Hell - the classpath.
I did a lot of useless whinging on my my previous thread: http://forum.java.sun.com/thread.jspa?threadID=5206398
I've got a proposed solution, but it'll have to come from the JVM vendors, and will require a standard, and like most retrofit solutions, it invloves a fair dose of upfront pain for us developers.
How would it be if ALL new versions of jar.exe enforced these rules:
1. Every jar-file packaged from now onward shall contain a jar.properties in the root directory of the jar-file
2. that jar.properties file shall contain at least these properties (with example values) jar.id=org.apache.xerces.2.9.0.006
product.id=org.apache.xerces
product.version.scheme=major.minor.sub[.build]
product.version.number=2.9.0
product.url=http://xml.apache.org/
product.name=Xerces XML Parser for Java
product.vendor=The Apache Software Foundation
product.description=Xerces is an open source DOM and SAX XML product.licence=http://www.apache.org/licenses/LICENSE
product.packaged.date=20070820.124116The product.packaged.date property would be upserted by jar.exe as is ALLWAYS in form YYYYMMDD.hhmmss
Hence and end to the ubuiqutios question "which one of these freeken 3rdParty.jar's (great name that numbnutts) do I need to add to get this version of com.clown.bobo.Foo.class AND that version of com.giligan.Bar.class?
And which of these three 3rdParty.jar's is the latest version anyway... A question which quickly devolves into
(a) google google google
(b) guess work and trial & error, and tools development (see previous thread)
(c) cursing ... lot's if this, it's good for the soul, at least it's better than autodefenestration.
(d) decompilers
(e) enlightenment; and finally
(f) Fix it you clowns!
How say you all?
Can you think of any problems, enhancments, alternatives?

at the end of the day, its the wrong CLASS file that you want to avoid.Yeah, another good point... so maybe it would better to get the compiler to build a date/time-stamp into each class, so you could compare two jar's actual content... it's not as user-friendly as a nice compact version file, but it can all be done "under the hood", without forcing developers to prepare yet another config file just to produce a freaken jar file.
And it's probably more machine friendly... I'm imagining a JVM with a classloader which could be instructed to use the latest available implementation whenever two (or more) implementations are present in the given classpath.. which I imagine would resolve about three quarters of classpath collisions automagically... and if the JVM is doing an exaustive classpath search anyways then I imagine it could print a MEANINGFUL error message something likeMethodNotFoundError: newDocument() is not defined in
  d:\java\project\smis\lib\xerces2.0\xercesImpl.jar!org.apache.xerces.DOMParser.class.
Earlier implementations of this class where found in:
  d:\java\project\smis\lib\xerces1.6\xercesImpl.jar
  d:\java\servers\weblogic81\3rdParty.jarThat would have saved me the better part of 2 days!

Similar Messages

  • How to load a Jar file in the class path?

    How to load a Jar file which contains class files, images, etc.. in the classpath without using URLClassLoader.

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

  • How do I add a jar file into the build path of the compiler?

    Hey,
    I'm trying to import a jar file into the build path of the compilation process, but it does not find the packages or the classes that are in it.
    I think I don't add it right...
              ArrayList<String> options=new ArrayList<String>();
              options.add("-d");
              options.add(targetDirectory);
              options.add("-classpath");
              for(String str:includeDirectory)
                   options.add(str);
              if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call());
                    ....and I've tried this way:
         public void setTargetDirectory(String targetDirectory) {
              this.targetDirectory = "-d " + targetDirectory;
         private void compile(Iterable<? extends JavaFileObject> compilationUnits) throws Exception {
              ArrayList<String> options = new ArrayList<String>();
              options.add(targetDirectory);
              String classPath="-cp ";// tried this also with "-classpath"
              for (String str : includeDirectory)
                   classPath+=str+":";
              options.add(classPath);
         if (!compiler.getTask(writer, fileManager, diagnostics, options, classes, compilationUnits).call())
              // throw new Exception("Compilation Error");
         }Thanks in advance,
    Adam.
    Edited by: Adam-Z. on Feb 24, 2010 5:41 AM
    Edited by: Adam-Z. on Feb 24, 2010 5:42 AM

    Thank you for your reply,
    Q: Are there .class files in that directory in that jar file? (the compiler doesn't ( can't )) look for directories, it can just look for specific files , and scan to get a list of all files matching certain criteria. So if there are no class files, it will say the package doesn't exist, even if there is a directory, possibly containing other files.yes there are class files in the jar, the tree structure:
    j2MeDataChunkGenerator_Plugin\(lots of class files)
    META-INF\manifest.mf
    and thats it.
    , your code will only work on windows because other platforms use a different path separator. You should use java.io.File.pathSeparator not explicit ';" when building your classpath. (this is unrelated to your problem, but you should correct it)will do, thanks.
    Q: Is that error in your post formatted by your own diagnostics? (we could possibly help you better if we didn't have to guess!!)I would not post my own error code, this text is generated by the compiler diagnostic.
    {code}
         System.err.println(" Error details: " + diagnostic.getMessage(null));
    {code}
    Q: Is line 3 of ImageCroper_Editor.java (sic) an import statement? (we could possibly help you better if we didn't have to guess!!)it is an import error... didn't the error message stated that it is an import problem? wired, I'm sure before it did. anyway it is an import error.
    Also you don't show us what the variable includeDirectory is in terms of type, and contents, that might be helpful. (we could possibly help you better if we didn't have to guess!!)It has only one String object: "D:\%Important Documents\WorkSpaces\PacMan\ApplicationManager\Plug-in\Data Chunk Designer.jar"
    the last file on the classpath list.
    Q: Have you proven this? that i did post, in this long line of text.
    Q: Is the compiler finding other classes (in other packages) in that same jar file?No. all the class files are in the jar, they all have entries that start with "j2MeDataChunkGenerator_Plugin\*.class", and since I get 47 errors I guess it does not load any other class.
    thank you for you comments, the problem with having these errors, is that I can't even get a piece of information where this error is coming from, only that it is an import loading error package not found, what does that mean? that the jar was not loaded in compilation(no error about this), that the jar is corrupted(no error about this), that the path is incorrect(it is correct I made sure), that there is no such package in the jar(There is), that the compiler does not load the package(does it even do that?), really I can't even guess why this happens, I've been at this on and of all day today, really annoying.
    Thanks,
    Adam.

  • Force IE to reload applet jar without closing browser?

    Hello,
    We have an applet that we need to support with both the Sun plugin and the MS JVM in IE. We do releases weekly and need to make sure our users get the most recent version of the jar when they launch the applet after a release. With the plugin, we can do this by using the cache version tags that the plug in supports, but with the MS JVM it appears that unless the browser is closed and reopened, the user will get the cached version of the applet from the browser cache (or the running JVM?). How can I ensure that the browser will get the newer version without having the users reopen their browsers. Also, does anyone know what the problem is here? Where does the MS JVM cache the applet? Is it sitting around in the JVM and only when the brower is closed and JVM destroyed that you can get the new version? How does the MS JVM deal with caching applets?
    BTW, I am not talking about making sure the HTML/applet tags arent cached, I dont think that is related to the jars being cached while the browser is still open.
    Thanks
    Aaron

    *** Jtrace: Found a free socket port: 2843
    native lib path C:\Program Files\Java\jre1.6.0_03\lib\ext*** Jtrace: nspr4.dll under C:\Program Files\Java\jre1.6.0_03\lib\ext\ielib is set to PATH
    *** Jtrace: Engine initialize once!
    native lib path C:\Program Files\Java\jre1.6.0_03\lib\ext*** Jtrace: Executing IeEmbed.exe -port=2843
    *** Jtrace: Connecting to native browser ... 0
    *** Jtrace: connected
    *** Jtrace: Process event to native browser: 0, 0,
    *** Jtrace: Send data to socket: 0,0,</html><body></html>
    *** Jtrace: Process event to native browser: 0, 1,
    *** Jtrace: Send data to socket: 0,1,459914</html><body></html>
    *** Jtrace: Read data from socket: 0,3042</html><body></html>
    *** Jtrace: Got a complete short message: 0,3042
    *** Jtrace: Process event from native browser: 0, 3042, null
    *** Jtrace: Process event to native browser: 0, 5,
    *** Jtrace: Send data to socket: 0,5,http://www.calpinetech.com</html><body></html>
    *** Jtrace: Process event to native browser: 0, 4,
    *** Jtrace: Send data to socket: 0,4,0,36,1000,464</html><body></html>
    *** Jtrace: Read data from socket: 0,3003</html><body></html>0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>
    *** Jtrace: Got a complete short message: 0,3003
    *** Jtrace: Process event from native browser: 0, 3003, null
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Read data from socket: 0,3024,Waiting for about:blank...</html><body></html>0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for about:blank...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for about:blank...
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Read data from socket: 0,3023,about:blank</html><body></html>0,3004</html><body></html>0,3024,Done</html><body></html>0,3005</html><body></html>0,3023,about:blank</html><body></html>0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3023,about:blank
    *** Jtrace: Process event from native browser: 0, 3023, about:blank
    *** Jtrace: Got a complete short message: 0,3004
    *** Jtrace: Process event from native browser: 0, 3004, null
    *** Jtrace: Got a complete short message: 0,3024,Done
    *** Jtrace: Process event from native browser: 0, 3024, Done
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Got a complete short message: 0,3023,about:blank
    *** Jtrace: Process event from native browser: 0, 3023, about:blank
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3042
    *** Jtrace: Dispatch event from NativeEventThread: 3003
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3023
    *** Jtrace: Dispatch event from NativeEventThread: 3004
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Dispatch event from NativeEventThread: 3023
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3001,http://www.calpinetech.com/</html><body></html>
    *** Jtrace: Got a complete short message: 0,3001,http://www.calpinetech.com/
    *** Jtrace: Process event from native browser: 0, 3001, http://www.calpinetech.com/
    *** Jtrace: Dispatch event from NativeEventThread: 3001
    *** Jtrace: URL = http://www.calpinetech.com/
    *** Jtrace: Send data to socket: @0,3001,0</html><body></html>
    *** Jtrace: Read data from socket: 0,3003</html><body></html>0,3024,Done</html><body></html>0,3003</html><body></html>
    *** Jtrace: Got a complete short message: 0,3003
    *** Jtrace: Process event from native browser: 0, 3003, null
    *** Jtrace: Dispatch event from NativeEventThread: 3003
    *** Jtrace: Got a complete short message: 0,3024,Done
    *** Jtrace: Process event from native browser: 0, 3024, Done
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Got a complete short message: 0,3003
    *** Jtrace: Process event from native browser: 0, 3003, null
    *** Jtrace: Dispatch event from NativeEventThread: 3003
    *** Jtrace: Read data from socket: 0,3005</html><body></html>0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Read data from socket: 0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>0,3022,back=0</html><body></html>0,3022,forward=0</html><body></html>0,3023,about:blank</html><body></html>0,3004</html><body></html>
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Got a complete short message: 0,3022,back=0
    *** Jtrace: Process event from native browser: 0, 3022, back=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Back State changed = false
    *** Jtrace: Got a complete short message: 0,3022,forward=0
    *** Jtrace: Process event from native browser: 0, 3022, forward=0
    *** Jtrace: Dispatch event from NativeEventThread: 3022
    *** Jtrace: Forward State changed = false
    *** Jtrace: Got a complete short message: 0,3023,about:blank
    *** Jtrace: Process event from native browser: 0, 3023, about:blank
    *** Jtrace: Dispatch event from NativeEventThread: 3023
    *** Jtrace: Got a complete short message: 0,3004
    *** Jtrace: Process event from native browser: 0, 3004, null
    *** Jtrace: Dispatch event from NativeEventThread: 3004
    *** Jtrace: Read data from socket: 0,3023,Calpine Technologies</html><body></html>
    *** Jtrace: Got a complete short message: 0,3023,Calpine Technologies
    *** Jtrace: Process event from native browser: 0, 3023, Calpine Technologies
    *** Jtrace: Dispatch event from NativeEventThread: 3023
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3024,Waiting for http://www.calpinetech.com/...</html><body></html>
    *** Jtrace: Got a complete short message: 0,3024,Waiting for http://www.calpinetech.com/...
    *** Jtrace: Process event from native browser: 0, 3024, Waiting for http://www.calpinetech.com/...
    *** Jtrace: Dispatch event from NativeEventThread: 3024
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Dispatch event from NativeEventThread: 3005
    *** Jtrace: Read data from socket: 0,3005</html><body></html>
    *** Jtrace: Got a complete short message: 0,3005
    *** Jtrace: Process event from native browser: 0, 3005, null
    *** Jtrace: Process event to native browser: 0, 15,
    *** Jtrace: Send data to socket: 0,15,</html><body></html>
    *** Jtrace: Read data from socket: 0,3061,<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Calpine Technologies</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK href="css/home_layout.css" type=text/css rel=stylesheet>
    <SCRIPT src="Scripts/AC_RunActiveContent.js" type=text/javascript></SCRIPT>
    </HEAD>
    <BODY>
    <CENTER>
    <DIV id=main>
    <DIV id=topnavigation align=left>
    <DIV class=fontboldgray id=topnavigationinner>
    <DIV align=left>  HOME    |    ABOUT US   |    SOLUTIONS    |    OUTSOURCING   |   CAREERS    |  HOW WE WORK   |  CONTACT US   |    LOGIN      </DIV></DIV>
    <DIV id=topnavigationicons align=right><IMG height=18 src="images/top_icon.gif" wi</html><body></html>_head
    *** Jtrace: Got a head message piece: <HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Calpine Technologies</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK href="css/home_layout.css" type=text/css rel=stylesheet>
    <SCRIPT src="Scripts/AC_RunActiveContent.js" type=text/javascript></SCRIPT>
    </HEAD>
    <BODY>
    <CENTER>
    <DIV id=main>
    <DIV id=topnavigation align=left>
    <DIV class=fontboldgray id=topnavigationinner>
    <DIV align=left>  HOME    |    ABOUT US   |    SOLUTIONS    |    OUTSOURCING   |   CAREERS    |  HOW WE WORK   |  CONTACT US   |    LOGIN      </DIV></DIV>
    <DIV id=topnavigationicons align=right><IMG height=18 src="images/top_icon.gif" wi
    *** Jtrace: Read data from socket: 0,3061,dth=60 useMap=#Map border=0> <MAP id=Map name=Map><AREA shape=RECT coords=43,0,60,12 href="#"><AREA shape=RECT coords=21,0,38,12 href="#"><AREA shape=RECT coords=0,0,17,12 href="#"></MAP></DIV></DIV>
    <DIV id=login style="DISPLAY: none; Z-INDEX: 3; OVERFLOW: hidden; PADDING-TOP: 4px; POSITION: absolute">
    <DIV id=logindiv>
    <FORM style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px" name=loginfrm action=# method=post ?>
    <TABLE class=logintable width="100%">
    <TBODY>
    <TR>
    <TD vAlign=top align=right colSpan=2><A onclick="overlayclose('login'); return false" href="#"><IMG src="images/n.gif" border=0></A></TD></TR>
    <TR>
    <TD class=logintext align=right>USER ID </TD>
    <TD align=left><INPUT name=userName></TD></TR>
    <TR>
    <TD class=logintext align=right>PASSWORD </TD>
    <TD align=left><INPUT type=password value="" name=password><INPUT type=hidden value=Login name=login></TD></TR>
    <TR>
    <TD align=middle></TD>
    <TD align=left><IMG style="CURSOR: hand" onclick="return va</html><body></html>_middle
    *** Jtrace: Got a middle message piece: dth=60 useMap=#Map border=0> <MAP id=Map name=Map><AREA shape=RECT coords=43,0,60,12 href="#"><AREA shape=RECT coords=21,0,38,12 href="#"><AREA shape=RECT coords=0,0,17,12 href="#"></MAP></DIV></DIV>
    <DIV id=login style="DISPLAY: none; Z-INDEX: 3; OVERFLOW: hidden; PADDING-TOP: 4px; POSITION: absolute">
    <DIV id=logindiv>
    <FORM style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px" name=loginfrm action=# method=post ?>
    <TABLE class=logintable width="100%">
    <TBODY>
    <TR>
    <TD vAlign=top align=right colSpan=2><A onclick="overlayclose('login'); return false" href="#"><IMG src="images/n.gif" border=0></A></TD></TR>
    <TR>
    <TD class=logintext align=right>USER ID </TD>
    <TD align=left><INPUT name=userName></TD></TR>
    <TR>
    <TD class=logintext align=right>PASSWORD </TD>
    <TD align=left><INPUT type=password value="" name=password><INPUT type=hidden value=Login name=login></TD></TR>
    <TR>
    <TD align=middle></TD>
    <TD align=left><IMG style="CURSOR: hand" onclick="return va
    *** Jtrace: Read data from socket: 0,3061,lform();" src="images/login.gif" name=login></TD></TD></TR></TBODY></TABLE></FORM></DIV></DIV>
    <DIV id=left>
    <DIV id=logocontainer>
    <DIV id=leftsidepadding align=left><A href="index.php"><IMG height=49 alt=Calpine src="images/logo.gif" width=245 border=0></A></DIV></DIV>
    <DIV id=left>
    <DIV id=aboutcalpine>
    <DIV id=leftsideaboutcalpine align=left><SPAN class=fontbold>About Calpine </SPAN><BR><SPAN class=font>Calpine technologies is a company specialized in custom software development, web design, Internet /Intranet applications and consulting services. The company has potential and experience in development of complex solutions for its customers. Calpine provides Exceptional Solutions at an Exceptional Price.</SPAN><BR><BR></DIV></DIV>
    <DIV id=search>
    <DIV class=fontbold id=leftsidesearch align=left>Search Site<BR>
    <DIV id=input><INPUT class=input name=textfield> <IMG height=17 src="images/go.gif" width=23></DIV>
    <DIV id=input><SPAN class=font>Advanced Search</SPAN></DIV></DIV></DIV>
    <DIV id=search></html><body></html>_middle
    *** Jtrace: Got a middle message piece: lform();" src="images/login.gif" name=login></TD></TD></TR></TBODY></TABLE></FORM></DIV></DIV>
    <DIV id=left>
    <DIV id=logocontainer>
    <DIV id=leftsidepadding align=left><IMG height=49 alt=Calpine src="images/logo.gif" width=245 border=0></DIV></DIV>
    <DIV id=left>
    <DIV id=aboutcalpine>
    <DIV id=leftsideaboutcalpine align=left><SPAN class=fontbold>About Calpine </SPAN><BR><SPAN class=font>Calpine technologies is a company specialized in custom software development, web design, Internet /Intranet applications and consulting services. The company has potential and experience in development of complex solutions for its customers. Calpine provides Exceptional Solutions at an Exceptional Price.</SPAN><BR><BR></DIV></DIV>
    <DIV id=search>
    <DIV class=fontbold id=leftsidesearch align=left>Search Site<BR>
    <DIV id=input><INPUT class=input name=textfield> <IMG height=17 src="images/go.gif" width=23></DIV>
    <DIV id=input><SPAN class=font>Advanced Search</SPAN></DIV></DIV></DIV>
    <DIV id=search>
    *** Jtrace: Read data from socket: 0,3061,
    <DIV class=fontbold id=leftsideevents align=left>Upcoming Event <BR><BR><SPAN class=font>See us at these upcoming shows</SPAN><BR><IMG height=51 src="images/upcoing.gif" width=193 border=0></DIV></DIV></DIV></DIV>
    <DIV id=domain>
    <SCRIPT type=text/javascript>
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','513','height','124','src','images/banner','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode','opaque','movie','images/banner' ); //end AC code
    </SCRIPT>
    <OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=124 width=513 classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000><PARAM NAME="_cx" VALUE="13573"><PARAM NAME="_cy" VALUE="3281"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="images/banner.swf"><PARAM NAME="Src" VALUE="images/banner.swf"><PARAM NAME="WMode" VALUE="Opaque"><PARAM NAME="Play" VALUE</html><body></html>_middle
    *** Jtrace: Got a middle message piece:
    <DIV class=fontbold id=leftsideevents align=left>Upcoming Event <BR><BR><SPAN class=font>See us at these upcoming shows</SPAN><BR><IMG height=51 src="images/upcoing.gif" width=193 border=0></DIV></DIV></DIV></DIV>
    <DIV id=domain>
    <SCRIPT type=text/javascript>
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','513','height','124','src','images/banner','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','wmode','opaque','movie','images/banner' ); //end AC code
    </SCRIPT>
    <OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height=124 width=513 classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000><PARAM NAME="_cx" VALUE="13573"><PARAM NAME="_cy" VALUE="3281"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="images/banner.swf"><PARAM NAME="Src" VALUE="images/banner.swf"><PARAM NAME="WMode" VALUE="Opaque"><PARAM NAME="Play" VALUE
    *** Jtrace: Read data from socket: 0,3061,="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
    <embed width="513" height="124" src="images/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque" type="application/x-shockwave-flash" ></embed></OBJECT><NOSCRIPT>
    <embed src="images/banner.swf" wi</html><body></html>_middle
    *** Jtrace: Got a middle message piece: ="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
    <embed width="513" height="124" src="images/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque" type="application/x-shockwave-flash" ></embed></OBJECT><NOSCRIPT>
    <embed src="images/banner.swf" wi
    *** Jtrace: Read data from socket: 0,3061,dth="513" height="124" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque"></embed>
                                            </NOSCRIPT>
    <DIV id=domaingreen align=left>
    <DIV class=font id=domaingreencontents><SPAN class=fontboldyellowheading><A class=yelow href="life_science.html">LifeScience</A></SPAN><SPAN class=fontboldwhiteheading> Solutions</SPAN> <BR><SPAN class=fontwhite>We help clients to manage the bulk of data efficiently inorder to reduce discovery and development time .We are caterring services to the life science giants.</SPAN></DIV></DIV>
    <DIV id=domainblue align=left>
    <DIV class=font id=domainbluecontents align=left><SPAN class=fontboldyellowheading><A class=yelow href="graphic_service.html">Design</A></SPAN><SPAN class=fontboldwhiteheading> Services</SPAN><SPAN class=fontboldwhiteheading></SPAN> <SPAN class=fontwhite><BR>Calpine Creatives provides a full array of creative serv</html><body></html>_middle
    *** Jtrace: Got a middle message piece: dth="513" height="124" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="opaque"></embed>
                                            </NOSCRIPT>
    <DIV id=domaingreen align=left>
    <DIV class=font id=domaingreencontents><SPAN class=fontboldyellowheading><A class=yelow href="life_science.html">LifeScience</A></SPAN><SPAN class=fontboldwhiteheading> Solutions</SPAN> <BR><SPAN class=fontwhite>We help clients to manage the bulk of data efficiently inorder to reduce discovery and development time .We are caterring services to the life science giants.</SPAN></DIV></DIV>
    <DIV id=domainblue align=left>
    <DIV class=font id=domainbluecontents align=left><SPAN class=fontboldyellowheading><A class=yelow href="graphic_service.html">Design</A></SPAN><SPAN class=fontboldwhiteheading> Services</SPAN><SPAN class=fontboldwhiteheading></SPAN> <SPAN class=fontwhite><BR>Calpine Creatives provides a full array of creative serv
    *** Jtrace: Read data from socket: 0,3061,ices in all aspects of Web design , Graphic design and Print services.<BR>We believe in giving you the EXtra touches that really make your designs to get noticed. </SPAN></DIV></DIV>
    <DIV id=domaingreen align=left>
    <DIV class=font id=domaingreencontents><SPAN class=fontboldyellowheading><A class=yelow href="ecommerce.html">eCommerce</A></SPAN><SPAN class=fontboldwhiteheading> Solutions</SPAN><SPAN class=fontboldwhiteheading></SPAN><BR><SPAN class=fontwhite>We develop high-end custom e-commerce websites with specific goals of each client,High performance web applications completely tailored to suite your requirments. </SPAN></DIV></DIV>
    <DIV id=domainblue align=left>
    <DIV class=font id=domainbluecontents align=left><SPAN class=fontboldyellowheading><A class=yelow href="support.html">Infrastructure </A></SPAN><SPAN class=fontboldwhiteheading>Management</SPAN><SPAN class=fontboldwhiteheading></SPAN> <SPAN class=fontwhite><BR>We provide professional infr</html><body></html>_middle
    *** Jtrace: Got a middle message piece: ices in all aspects of Web design , Graphic design and Print services.<BR>We believe in giving you the EXtra touches that really make your designs to get noticed. </SPAN></DIV></DIV>
    <DIV id=domaingreen align=left>
    <DIV class=font id=domaingreencontents><SPAN class=fontboldyellowheading><A class=yelow href="ecommerce.html">eCommerce</A></SPAN><SPAN class=fontboldwhiteheading> Solutions</SPAN><SPAN class=fontboldwhiteheading></SPAN><BR><SPAN class=fontwhite>We develop high-end custom e-commerce websites with specific goals of each client,High performance web applications completely tailored to suite your requirments. </SPAN></DIV></DIV>
    <DIV id=domainblue align=left>
    <DIV class=font id=domainbluecontents align=left><SPAN class=fontboldyellowheading><A class=yelow href="support.html">Infrastructure </A></SPAN><SPAN class=fontboldwhiteheading>Management</SPAN><SPAN class=fontboldwhiteheading></SPAN> <SPAN class=fontwhite><BR>We provide professional infr
    *** Jtrace: Read data from socket: 0,3061,astructure management based on your total requirments.We offer round the clock service supports which will enhance your infrastructure perfromance and efficiency.</SPAN></DIV></DIV>
    <DIV id=domaingreenbottom align=left>
    <DIV class=font id=domaingreencontentsbottom><SPAN class=fontboldyellowheading><A class=yelow href="erp.html">ERP </A></SPAN><SPAN class=fontboldwhiteheading>Solutions</SPAN><SPAN class=fontboldwhiteheading></SPAN> <BR><SPAN class=fontwhite>The core development process of our organization comprises of prestigious ERPs.We have proven expertise in the arena of ERP.That has given us a distinctive edge in rendering many an ERP solution that have been hugely successful. </SPAN></DIV></DIV>
    <DIV id=domainbluebottom align=left>
    <DIV class=font id=domainbluecontentsbottom align=left><SPAN class=fontboldyellowheading><A class=yelow href="quality.html">Quality Control</A></SPAN> <SPAN class=fontwhite><BR>Our exclusive Quality department take care of all rigid quality assurance</html><body></html>_middle
    *** Jtrace: Got a middle message piece: astructure management based on your total requirments.We offer round the clock service supports which will enhance your infrastructure perfromance and efficiency.</SPAN></DIV></DIV>
    <DIV id=domaingreenbottom align=left>
    <DIV class=font id=domaingreencontentsbottom><SPAN class=fo

  • Installation of IPC AP 7.0 Jar is getting Failed when uploading in CRM

    Hello Experts,
    we did some changes in the previosly uploded version of IPC AP 7.0  customer user exit Jar file in eclipse.
    While uploading the new modified jar through transaction /SAPCND/UE_DEV in CRM we are getting error :" installation of module <Jar file name > has failed ".
    when we checked the logs in SM 53 we seen the below mentioned error:
    Message: Exception of type com.sap.sql.log.OpenSQLException caught: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permit ted)" is not supported
    caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE ^ (reason: Modification of ABAP tables is not permitted)" is not supported
    --> com.sap.sql.log.OpenSQLException: Exception of type com.sap.sql.sqlparser.CommonSQLParserException: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is n" is not suppor ted
    caught: - statement "DELETE FROM "SVMCRT_MOD_TR_T" WHERE "MODULE_NAME" LIKE ? ESCAPE '^' (reason: Modification of ABAP tables is not permitted)" is not supported
    at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Object;)Lcom/sap/sql/log/OpenSQLException;(Syslog.java:85)
    at 
    if  required i can post the complete stack trace.
    any inputs/suggestions are most welcome.
    Thanks & regards,
    Siddharth

    Hi Mark,
    Yesterday after Posting the thread we found the same Note ,Issue occured because of  JAVA write access was not enabled on the table ,After enabling it as mentioned in SAP Note, Jar file get successfully uploaded.
    Thanks for your Help also.
    Regards,
    Siddharth

  • Application working under NetBeans but not as a *.jar file

    Hello,
    recently I found a little problem. I wrote application that shows all available ports in my computer. When I am running this applications under NetBeans it works with no problem - finds all available ports. Then I am building it to the *.jar file. Application is working with no problem but command:
    Enumeration PortIds = CommPortIdentifier.getPortIdentifiers();
    is not returning any identifiers - PortIds is empty.
    Anyone knows a solution for this type of problems? Thanks

    Hi Venkatesh,
    Few questions.
    1. What is your JDeveloper version? (Always better to post your JDev version along with the question, which would help us to help you better).
    2. Did you try adding webserviceclient.jar to the classpath? (Search in your JDev installation directory for the location of this jar file).
    -Arun

  • .jar file is not working properly :developed in NETBEANS

    Hi Gurus,
    i am using NETBEANS IDE 7.2.
    i am developing a project that interacts with databases 10g and COM ports of machine , these all processes are performed by .bat file which i am trying to run from jFramform , code works perfectly .bat file is also called perfectly when i run the project using F6 from the NETBEANS, for testing i placed some dialogue boxes on the form to test it ,
    but when i run executable .jar  file , form run successfully and dialogue box works perfectly but .bat file is not called by executable .jar file.
    this is how i call the .bat file...
      String filePath = "D:/pms/Libraries/portlib.bat";  
            try { 
              Process p = Runtime.getRuntime().exec(filePath); 
            } catch (Exception e) { 
                e.printStackTrace(); 
    and below is the contents of portlib.bat file
    java -jar "D:\SMS\SMS\dist\SMS.jar" 
    you must probably ask why i am calling a .jar file using .bat file .
    reason is that this .jar project sends message using GSM mobile , System.exit(); is compulsory to complete a job and then do the next one ,
    if i use the same file to execute this job it makes exit to entire the application (hope you can understand my logic).
    that's why i use extra .jar file in .bat file , when single job is completed .bat exits itself and new command is given.
    Problem is that code is working perfectly in NETBEANS when i run the project but when i run .jar then .bat file is not working  ,
    thanks.

    Thanks Sir ,
    You need to first test an example that works like the one in the article.
    There are plenty of other examples on the web - find one you like:
    http://javapapers.com/core-java/os-processes-using-java-processbuilder/
    I tried this one.
      try {
                ProcessBuilder dirProcess = new ProcessBuilder("D:/SMS/SMS/Send_message.bat");
                 File commands = new File("D:/SMS/SMS/Send_message.bat");
                 File dirOut = new File("C:/process/out.txt");
                 File dirErr = new File("C:/process/err.txt");
               dirProcess.redirectInput(commands);
                 dirProcess.redirectOutput(dirOut);
               dirProcess.redirectError(dirErr);
                 dirProcess.start();
            } catch (IOException ex) {
                Logger.getLogger(mainform.class.getName()).log(Level.SEVERE, null, ex);
    as instructed in the article i compiled  both the projects at same version or sources and libraries which is 1.7
    here is my version details
    C:\>javac -version
    javac 1.7.0_07
    C:\>java -version
    java version "1.7.0_07"
    Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
    Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
    inside the NETBEANS IDE c:\process\err.txt  remains empty and code works perfectly , but when I run executable .jar file( by double clicking on that file in dist directry) then c:\process\err.txt becomes full with this error text and there is no response from calling D:\SMS\SMS\send_message.bat
    here is the error text
    java.lang.UnsupportedClassVersionError: sms/SMSMAIN (Unsupported major.minor version 51.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Exception in thread "main"
    here is /SMS/SMS
    unknown source ?

  • Unable to load database driver from my applet's jar file

    I'm trying to set up an applet that will talk to a MySQL database. I have no problem connecting to the database as I'm developing the code ("un-jarred"), but when I create a jar file of my code to test through a web browser, I cannot connect to the database due to the usual ClassNotFoundException. I have included mysql-connector-java-3.1.12-bin.jar (the current driver) in the jar, but I don't know if I'm supposed to supply some info through an attribute to the applet tag to let it know that the jar contains the driver it needs or if I have to call the driver differently in my code.
    Any help is appreciated, thanks.

    The simplest approach is always the best. :)Abso-lutely.
    Awesome, that worked perfectly. I Included the extra
    jar file in the applet tag and now my applet makes
    some sweet lovin' to the database.And you have succeeded where thousands have failed. Congratulations.

  • Crystal Report not works in JAR File

    I'm using Eclipse All in one, which includes Crystal Reports.. I Connected my Java program with Crystal Reports and its working properly. Now my problem is that the Report is not working in JAR files.. It throws some exception as
    "com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com.businessobjects
    com.businessobjects.reports.sdk.JRCCommunicationAdapter---- Error code:-2147215357 Error code name:internal"
    Whats the Error.. I don't know. I think that i may missed some CLASSPATH Files. The included CLASSPATH Files are:
    ReportViewer.jar
    jrcerom.jar
    Concurrent.jar
    CrystalCharting.jar
    CrystalCommon.jar
    CrystalContentModels.jar
    CrystalExporters.jar
    CrystalExportingBase.jar
    CrystalFormulas.jar
    CrystalQueryEngine.jar
    CrystalReportEngine.jar
    CrystalReportingCommon.jar
    icu4j.jar
    keycodeDecoder.jar
    log4j.jar
    MetafileRenderer.jar
    rasapp.jar
    rascore.jar
    rpoifs.jar
    Serialization.jar
    URIUtil.jar
    xercesImpl.jar
    xml-apis.jar
    and the mysql-connector jar file
    Anybody help me please...

    Unable to load database connector
    'com.crystaldecisions.reports.queryengine..driverImpl.
    DriverLoader
    now you have any idea.. pleaseIs that a typo where you have two periods below?
    queryengine..driverImplOther than that I don't think anybody here can help you with that. If your classpath includes all necessary JAR files and you are able to access all your resources from within your application JAR file, then I imagine there is a problem with the third-party crystal decisions JAR file or how you are attempting to use it.
    My advice to you is to try and contact support with the vendor or provider of this API or possibly try posting on a support forum on their website to see if somebody can help you there.

  • How to use one ODSI project artifact as jar for other ODSI project?

    Hi,
    I am working on multiple ODSI proejcts in Same Server. My problem is how to call one projects resources in other ODSI project. I need this as Some of Data Services read the data from more then one database. The projects are in seprate Dataspace projects but they are deployed in same server. When I try to export artifacts from one projects and include them as Jar in other projects I am not able to see any Data service methods so unable to call any method of one project in other project. Please advise how to recsolve this problem.
    Thankyou in advance.
    Rahul

    If you already have a case open, it's polite if you mention that - so I don't have to answer the same questions to support and also to this forum. Likewise, when you get an answer to your question on this forum, you can tell support. So they don't keep looking for something you already have the answer to. Cuts down on the duplication of effort.
    You have one project. You add more files to it (regardless of how you add them - by creating files with the editor, by using a wizard or by importing files from another project), you still have only one project.
    If you had some other project that you exported the files from - that project is still there - but the original project does not know or care about it.
    Edited by: mikereiche on Jun 21, 2010 1:55 PM

  • How to modify a specific class in jar file ?

    I've downloaded a jar file for applet, the jar file works fine... but when I extract a specific class file from the jar file and just recompie it from my IDE (Eclipse) without even making any change and then compress again jar class files including the new modified class file instead of the old one (without any modifications to other classes)... then I get
    (NoSuchMethodError ) exception whenever methods of other classes are invoked from within the modified class !!
    ...The manifist file of the jar file reads the following line
    Created-By: 1.4.0_01 (Sun Microsystems Inc.)
    I thought it means that jar class files were built using JDK 1.4.0_01 ...I used JDK 1.5.0_01 in my IDE...
    I thought JRE incompatiblity was the reason of the problem so I downloaded JRE 1.4.0_01 and used it to build this class file... but i got the same exception..
    so what is the main reason of the problem ? ...should I make changes to IDX files accompanying applet jar files ??
    If no, then how can I overcome this problem and be able to change and rebuild a specific class from this jar file ?
    (I cannot rebuild all classes in jar because there are errors I cannot resolve !!)

    Could you please clarify: do you want to run your project or a project from an independent jar?
    In the first case just select Run Project from the project context menu or select a class with main method and click Run File in the class context menu.
    Regarding the second case:
    - I don't think there is such a feature in the IDE (running third party jars is not an IDE function). Could you explain why you need this?

  • Loading jar files at execution time via URLClassLoader

    Hello�All,
    I'm�making�a�Java�SQL�Client.�I�have�practicaly�all�basic�work�done,�now�I'm�trying�to�improve�it.
    One�thing�I�want�it�to�do�is�to�allow�the�user�to�specify�new�drivers�and�to�use�them�to�make�new�connections.�To�do�this�I�have�this�class:�
    public�class�DriverFinder�extends�URLClassLoader{
    ����private�JarFile�jarFile�=�null;
    ����
    ����private�Vector�drivers�=�new�Vector();
    ����
    ����public�DriverFinder(String�jarName)�throws�Exception{
    ��������super(new�URL[]{�new�URL("jar",�"",�"file:"�+�new�File(jarName).getAbsolutePath()�+"!/")�},�ClassLoader.getSystemClassLoader());
    ��������jarFile�=�new�JarFile(new�File(jarName));
    ��������
    ��������/*
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������System.setProperty("java.class.path",�System.getProperty("java.class.path")+File.pathSeparator+jarName);
    ��������System.out.println("-->"�+�System.getProperty("java.class.path"));
    ��������*/
    ��������
    ��������Enumeration�enumeration�=�jarFile.entries();
    ��������while(enumeration.hasMoreElements()){
    ������������String�className�=�((ZipEntry)enumeration.nextElement()).getName();
    ������������if(className.endsWith(".class")){
    ����������������className�=�className.substring(0,�className.length()-6);
    ����������������if(className.indexOf("Driver")!=-1)System.out.println(className);
    ����������������
    ����������������try{
    ��������������������Class�classe�=�loadClass(className,�true);
    ��������������������Class[]�interfaces�=�classe.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces.getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ��������������������Class�superclasse�=�classe.getSuperclass();
    ��������������������interfaces�=�superclasse.getInterfaces();
    ��������������������for(int�i=0;�i<interfaces.length;�i++){
    ������������������������if(interfaces[i].getName().equals("java.sql.Driver")){
    ����������������������������drivers.add(classe);
    ������������������������}
    ��������������������}
    ����������������}catch(NoClassDefFoundError�e){
    ����������������}catch(Exception�e){}
    ������������}
    ��������}
    ����}
    ����
    ����public�Enumeration�getDrivers(){
    ��������return�drivers.elements();
    ����}
    ����
    ����public�String�getJarFileName(){
    ��������return�jarFile.getName();
    ����}
    ����
    ����public�static�void�main(String[]�args)�throws�Exception{
    ��������DriverFinder�df�=�new�DriverFinder("D:/Classes/db2java.zip");
    ��������System.out.println("jar:�"�+�df.getJarFileName());
    ��������Enumeration�enumeration�=�df.getDrivers();
    ��������while(enumeration.hasMoreElements()){
    ������������Class�classe�=�(Class)enumeration.nextElement();
    ������������System.out.println(classe.getName());
    ��������}
    ����}
    It�loads�a�jar�and�searches�it�looking�for�drivers�(classes�implementing�directly�or�indirectly�interface�java.sql.Driver)�At�the�end�of�the�execution�I�have�found�all�drivers�in�the�jar�file.
    The�main�application�loads�jar�files�from�an�XML�file�and�instantiates�one�DriverFinder�for�each�jar�file.�The�problem�is�at�execution�time,�it�finds�the�drivers�and�i�think�loads�it�by�issuing�this�statement�(Class�classe�=�loadClass(className,�true);),�but�what�i�think�is�not�what�is�happening...�the�execution�of�my�code�throws�this�exception
    java.lang.ClassNotFoundException:�com.ibm.as400.access.AS400JDBCDriver
    ��������at�java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    ��������at�java.security.AccessController.doPrivileged(Native�Method)
    ��������at�java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    ��������at�sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    ��������at�java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    ��������at�java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    ��������at�java.lang.Class.forName0(Native�Method)
    ��������at�java.lang.Class.forName(Class.java:140)
    ��������at�com.marmots.database.DB.<init>(DB.java:44)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    ��������at�com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    ��������at�com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver�file�is�not�in�the�classpath�!!!�
    I�have�tried�also�(as�you�can�see�in�comented�lines)�to�update�System�property�java.class.path�by�adding�the�path�to�the�jar�but�neither...
    I'm�sure�I'm�making�a/some�mistake/s...�can�you�help�me?
    Thanks�in�advice,
    (if�there�is�some�incorrect�word�or�expression�excuse�me)

    Sorry i have tried to format the code, but it has changed   to �... sorry read this one...
    Hello All,
    I'm making a Java SQL Client. I have practicaly all basic work done, now I'm trying to improve it.
    One thing I want it to do is to allow the user to specify new drivers and to use them to make new connections. To do this I have this class:
    public class DriverFinder extends URLClassLoader{
    private JarFile jarFile = null;
    private Vector drivers = new Vector();
    public DriverFinder(String jarName) throws Exception{
    super(new URL[]{ new URL("jar", "", "file:" + new File(jarName).getAbsolutePath() +"!/") }, ClassLoader.getSystemClassLoader());
    jarFile = new JarFile(new File(jarName));
    System.out.println("-->" + System.getProperty("java.class.path"));
    System.setProperty("java.class.path", System.getProperty("java.class.path")+File.pathSeparator+jarName);
    System.out.println("-->" + System.getProperty("java.class.path"));
    Enumeration enumeration = jarFile.entries();
    while(enumeration.hasMoreElements()){
    String className = ((ZipEntry)enumeration.nextElement()).getName();
    if(className.endsWith(".class")){
    className = className.substring(0, className.length()-6);
    if(className.indexOf("Driver")!=-1)System.out.println(className);
    try{
    Class classe = loadClass(className, true);
    Class[] interfaces = classe.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces.getName().equals("java.sql.Driver")){
    drivers.add(classe);
    Class superclasse = classe.getSuperclass();
    interfaces = superclasse.getInterfaces();
    for(int i=0; i<interfaces.length; i++){
    if(interfaces[i].getName().equals("java.sql.Driver")){
    drivers.add(classe);
    }catch(NoClassDefFoundError e){
    }catch(Exception e){}
    public Enumeration getDrivers(){
    return drivers.elements();
    public String getJarFileName(){
    return jarFile.getName();
    public static void main(String[] args) throws Exception{
    DriverFinder df = new DriverFinder("D:/Classes/db2java.zip");
    System.out.println("jar: " + df.getJarFileName());
    Enumeration enumeration = df.getDrivers();
    while(enumeration.hasMoreElements()){
    Class classe = (Class)enumeration.nextElement();
    System.out.println(classe.getName());
    It loads a jar and searches it looking for drivers (classes implementing directly or indirectly interface java.sql.Driver) At the end of the execution I have found all drivers in the jar file.
    The main application loads jar files from an XML file and instantiates one DriverFinder for each jar file. The problem is at execution time, it finds the drivers and i think loads it by issuing this statement (Class classe = loadClass(className, true);), but what i think is not what is happening... the execution of my code throws this exception
    java.lang.ClassNotFoundException: com.ibm.as400.access.AS400JDBCDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:140)
    at com.marmots.database.DB.<init>(DB.java:44)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.carregaConfiguracio(DBReplicatorConfigHelper.java:296)
    at com.marmots.dbreplicator.DBReplicatorConfigHelper.<init>(DBReplicatorConfigHelper.java:74)
    at com.marmots.dbreplicator.DBReplicatorAdmin.<init>(DBReplicatorAdmin.java:115)
    at com.marmots.dbreplicator.DBReplicatorAdmin.main(DBReplicatorAdmin.java:93)
    Driver file is not in the classpath !!!
    I have tried also (as you can see in comented lines) to update System property java.class.path by adding the path to the jar but neither...
    I'm sure I'm making a/some mistake/s... can you help me?
    Thanks in advice,
    (if there is some incorrect word or expression excuse me)

  • Error while updating a jar file

    I am trying to update a jar file using teh following command
    jar -uf project.jar fileMy.prop
    however while doing that i get the following error
    java.io.IOException: Error in writing existing jar file
    at sun.tools.jar.Main.run(Main.java:179)
    at sun.tools.jar.Main.main(Main.java:904)

    Perhaps some process (your java program perhaps) is still running that has the file open still? You'll need to shut down the process(es) that have it open. Or you don't have proper rights to the directory/file. Not a java issue.

  • Error while deploying a JAR-File into 8i !

    Hello to all Oracle experts,
    At the attempt to deploy a Jar file into the 8i the following
    error message comes onto Shell level:
    initialization complete
    loading : com/sun/xml/tree/XmlDocumentBuilder
    ORA-01536: space quota exceeded for tablespace 'PROCON_DATA'
    Error while loading com/sun/xml/tree/XmlDocumentBuilder
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.DBMS_LOB", line 700
    ORA-06512: at "PROCON.LOADLOBS", line 1
    ORA-06512: at line 1
    creating : com/sun/xml/tree/XmlDocumentBuilder
    Error while creating class com/sun/xml/tree/XmlDocumentBuilder
    ORA-29509: incorrectly formed Java binary class definition
    The command was:
    loadjava -user procon/procon@t2srv1:1521:PROCON -thin -verbose -schema PROCON xml_un.jar
    It would please me if somebody has an idea to this error !
    null

    Hi Olivier,
    you could try the following approach:
    1. Package your JAR files as J2EE Engine libraries and deploy them on it as described here: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/2ade3fc6c6ec06e10000000a1550b0/frameset.htm">Working with J2EE Libraries</a>.
    2. Set reference to this library from the application that use them. Depending on your application, refer to the appropriate documentation:
    -- reference from a J2EE app -> see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/15/d5d93fe80fed06e10000000a1550b0/frameset.htm">Referencing Libraries in Applications</a>
    -- reference from a portal app -> see <a href="http://help.sap.com/saphelp_nw04/helpdata/en/02/788540ae1dbb4de10000000a1550b0/frameset.htm">Referencing Elements</a>
    Hope that helps!

  • Error while generating JAR using adadmin

    Hi all,
    EBS Version: R12.1.1
    I am in the middle of migrating the EBS from windows 2003-32bit to Linux 5-64Bit.
    I am getting the below error while generating the JAR files using adadmin.
    Error generated in adadmin
    Signing product JAR files in  JAVA_TOP -
      /u01/appltest/TEST/apps/apps_st/comn/java/classes
       using entity TEST_vm1213l and certificate 1.
    Successfully created javaVersionFile.
    Generating product JAR files in JAVA_TOP -
      /u01/appltest/TEST/apps/apps_st/comn/java/classes with command:
    adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @/u01/appltest/TEST/apps/apps_st/appl/admin/TEST/out/genjars.cmd
    Failed to generate product JAR files in JAVA_TOP -
       /u01/appltest/TEST/apps/apps_st/comn/java/classes.
    adogjf() Unable to generate jar files under JAVA_TOP
    Backing up restart files, if any......Done.
    You should check the file
    /u01/appltest/TEST/apps/apps_st/appl/admin/TEST/log/gen_jar.log
    for errors.
    Entries from gen_jar.log
    Reading language information from applUS.txt ...
      Temporarily resetting CLASSPATH to:
      "/u01/appltest/TEST/apps/apps_st/appl/ad/12.0.0/java/adjava.zip:/u01/appltest/TEST/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/u01/appltest/TEST/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/u01/appltest/TEST/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/u01/appltest/TEST/apps/apps_st/comn/java/lib/appsborg.zip:/u01/appltest/TEST/apps/tech_st/10.1.2/forms/java:/u01/appltest/TEST/apps/tech_st/10.1.2/forms/java/frmall.jar:/u01/appltest/TEST/apps/tech_st/10.1.2/jlib/ewt3.jar:/u01/appltest/TEST/apps/tech_st/10.1.2/j2ee/OC4J_BI_Forms/applications/formsapp/formsweb/WEB-INF/lib/frmsrv.jar:/u01/appltest/TEST/apps/apps_st/comn/java/classes"
      Calling /u01/appltest/TEST/apps/tech_st/10.1.3/appsutil/jdk/jre/bin/java ...
    The JDK version is 1.6.0_10
    Validating the files/directories specified for -areas option
    ERROR: File/directory 61A9A14779A1A8 does not exist
    ERROR: File/directory -keyPass does not exist
    ERROR: File/directory AA65D2F9B26DDBABEF33 does not exist
    ERROR: File/directory -storePass does not exist
    ERROR: File/directory -keysEncrypted does not exist
    Validating the files/directories specified for -outputSpec option
    Validating the directory specified for -lstDir option
    Error(s) have occurred; exiting with status 1
    Failed to generate product JAR files in JAVA_TOP -
       /u01/appltest/TEST/apps/apps_st/comn/java/classes.
    Kindly provide some inputs to troubleshoot further.
    If you need further details, kindly let me know.
    Regards,
    Krish.

    Hi all,
    I have applied the consolidated JRI fixes - patch 17191279 .
    Then, when generating Jar, received keypass is tampered error.
    re-generated the key using $ adjkey -initialize.
    Now, its working fine.
    Regards,
    Krish.

Maybe you are looking for