Jar files as application Error under linux

I created a jar file with the following jar command
jar cmf mainclass Asdi2GuiJar.jar *.class
Main-Class: ASDIGUI
It did work without any problem : java -jar Asdi2GuiJar.jar
when I added to the CLASSPATH under linux "Redhat 7.2" C-shell, it give me an error:
Exception in the thread main java.util.zip.ZipException: No Such file or directory
even im not using any zip file class in my java application. Any idea why im getting such an error even before addding the jar file to the CLASSPATH it did work without any problem?

ah young grasshopper you are using zip files :) rename your .jar file a .zip and use unzip on it :)
and that error means that the jvm's classloader couldn't load it's zip component so it's likely that your jvm can't find it's standard lib's
make sure your class path points to the /lib directory of your java install..... which version of the jdk are you using?
are you setting the classpath globally? since the way you said CLASSPATH I guess you are... ....are you keeping the old classpath when you set it? like CLASSPATH=$CLASSPATH:/myNewSource
or something like that...
maybe something in that will help

Similar Messages

  • Forms compilation Errors under Linux

    Hello,
    I have a main form called Tbdoctrk.fmb.
    This forms compiles and runs perfectly through Oracle 9i iDS.
    When transfering the fmb file under Linux, and attempting to recompile using the f90genm.sh utility, I get the following compilation errors:
    FRM-18108: Failed to load the following objects.
    FRM-30436: Parent window not specified for canvas.View Canvas H_TOOLBAR
    FRM-30041: Position of item places it off of canvas.
    Item: BUTTON_HELP
    Block: VARIABLE
    Form: TBDOCTRK
    FRM: Unable to adjust form for output.
    ====
    I noticed that most of the object that failed to load (1 data block object, 1 canvas and a number of property classes and visual attributes) are contained in a file called TOOLBAR.fmb.
    The TOOLBAR.fmb file compiles without errors under Linux/WIndows + is located in the same folder as the Tbdoctrk.fmb file.
    1) How can I resolve this issue ?
    PT
    PS: I tried renaming the fmb files to upper/lower case without success.

    Hello,
    My main form called Tbdoctrk.fmb in turn calls a form called Pre_bord.fmb in a Program Unit.
    Most but not all Class and Value Attributes are included in a file called toolbar.fmb. I did not find any specific reference to the toolbar.fmb file.
    However, at compile time, I find that those objects are not loaded.
    1) In what part of the main form Tbdoctrk.fmb should I find any such reference to the toolbar.fmb file ?
    2) How should I create those symbolic links under Linux ?
    PT

  • I ran a disk verify & disk repair on my macbook.. both said my system was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error. Help

    m was fine. I keep getting the underlying task reported failure on exit when trying to do disk permission or repair permissions. Also get cant install files in "/applications error when ever trying to install a driver or update. Help

    Hi,
    Here's an article for that:
    http://support.apple.com/kb/ts1901

  • Deploying jar file in server - Error

    Hi,
    I have created a jar file XXEFSS_OrderStatus of my custom AM, VO, CO files(.xml and .class) and moved to a path under custom top $XXEFSS_TOP/java/lib
    Then edited the file $ORACLE_HOME/Apache/Jserv/etc/jserv.properties to include
    "Wrapper.classpath=/oradg/u01/app/devora/apps/xxefss/1.0/java/lib/XXEFSS_OrderStatus.jar"
    Then bounced the apache server.
    Now when I try to navigate to the custom page, it shows error "Could not create Java class"
    I couldnot trace where the issue is...

    Hi,
    why don't you deploy the jar file with the application's WAR file? This would put it into the right spot
    Frank

  • App runs in Eclipse environment but not from jar file with no error message

    When I upgraded my jre to 5.0 my app does not run. After fixing the properties problem I had a few days ago it is now at least compiling and running within Eclpse
    However, when I export to a jar file it runs to a certain point and then just goes away with no error message!!! I've narrowed it down to the exact point where it dies but don't understand why it dies and especially gives me no errors whatsoever. It just goes away.
    It is creating an instance of a new class when it dies.
    Can someone please help me?

    Ok, well it doesn't. Anyway, I'm still having the same problems. I can run my jar file to a certain point and then the application just stops. I know this because I've put come message boxes in the application to let me know where in the app the system is.
    It always dies when it is instantiating the new class called HeidiFrame; done by:
    HeidiFrame heidiFrame = null;
    if I put code in between the above line and before the below line, this code will work fine
    heidiFrame = new HeidiFrame();
    but if I put code after the above line, nothing happens
    As I said this all worked fine until I upgraded to Java 1.5
    If you look at http://java.sun.com/javase/technologies/compatibility.jsp there are 23 compatibility issues with the new release. We're using xml stuff so that was my first problem and the code wouldn't even compiile. Once I added in libraries, the code compiled and ran beautifully.
    However, when creating my jar file so I can deploy this application , I've discovered that the jar file will only run to a certain point, as I've stated previously. So, that's my problem. Not that I can't run it from the command prompt, which I can't, but it's a gui application. I've tried changing things in the classpath file and the manifest to no avail. Nothing changes. The application starts but when it goes to instantiate the HeidiFrame class, which is the class that actually builds the gui it dies and goes bye bye.

  • Aspects Developer "Verifier jar file not found error"

    Hello all.
    I'm working in a Java Card project and I have some troubles.
    When I tried to compile, verify and load my solution in Aspects Developer's Software, I achieved the following error message: " could not found Verifier jar file".
    So I couldn't test my applet nor simulate it.
    Then I compiled myself (with Java Card's commands) and execute the verifier file provided with Java Card, and all was good, so i decided to test my java card applet on the simulator or the real card, both with Aspects Developer SW.
    Then the error I got was "Read past end of stream".
    What am I doing in the wrong way?What can I do test my applet in a Simulator?
    Thank very much for your help.
    Regards.
    Mike L.

    Hi,
    This error message indicates that an incompatible version of the Java JDK is being used with Developer.
    The release notes distributed with Developer are a little misleading. Currently Developer supports Java JDK versions greater than 1.2.2 but not 1.4.x. For example, I have JDK 1.3.1_06 installed on my machine.
    Developer currently supports JavaCard development kit 2.1.2 and this specification restricts the versions of JDK that can be used. For more detail look at JCDevKit_User_Guide.pdf which can be found under <JAVA_CARD_INSTALL_DIR>\java_card_kit-2_1_2\doc\en\guides
    Cheers,
    Alasdair

  • 816 installer error under linux 7.1

    Hi,
    i tried to install oracle 816 under linux 7.1 . During the time of linking makefile. The following error occur :
    Error in invoking target install of makefile /oraHome/network/lib/ins_net_client.mk
    I have already added the 6.2 backward compatable libs(compat-eqcs,compat-glibc and compat-libs) and
    export LD_ASSUME_KERNEL=2.2.5
    execute the script
    /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
    It still doesnt work !!! Why ???
    CAN ANY BODY HELP !!! THANK A LOTS !!!
    null

    Read the other threads more carefully next time.
    Alex Voitov posted this ftp site:
    ftp://ftp.kernel.org/pub/software/libs/glibc/hjl/sdk/2.1/
    click README.Oracle8i.
    I also did what you did, but that was not enough, so I tried following the instructions in the README file mentioned above, and then I got oracle installed in Redhat 7.1 with no problems.
    After you install Oracle, you may also want to follow the instructions below.
    Posted by Kamal:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    Oracle Version 8.1.7
    Linux Redhat 7.0
    While installing Oracle you may encounter the error 'not able to connect to oracle'
    during database creation. This is due to glibc package problem.
    Please do the following
    1. Install the compat-glibc RPM for 2.1.3.x
    (This is on the Redhat 7.0 CDs)
    2. cd to the directory where compat-glibc installed the files (for me it's
    /usr/i386-glibc21-linux/lib).
    3. Copy the following files to $ORACLE_HOME/lib:
    libc-2.1.3.so
    libpthread.so
    libdl.so
    ld-linux.so.2
    For me, several of these are symbolic links, so you'll need to copy the target of the
    symbolic link and rename it to the link name when you copy it to $ORACLE_HOME/lib.
    For example, if ls -l shows:
    ld-linux.so.2 -> ld-2.1.3.so
    libc-2.1.3.so
    libdl.so -> libdl.so.2
    libpthread.so -> libpthread.so.0
    Then you will:
    cp ld-2.1.3.so $ORACLE_HOME/lib/ld-linux.so.2
    cp libc-2.1.3.so $ORACLE_HOME/lib
    cp libdl.so.2 $ORACLE_HOME/lib/libdl.so
    cp libpthread.so.0 $ORACLE_HOME/lib/libpthread.so
    4. Create a file in $ORACLE_HOME/lib called libc.so with the following contents (as a
    single line):
    GROUP ( /lib/libc-2.1.3.so /lib/ld-linux.so.2 /libc_nonshared.a )
    Substitute the value of $ORACLE_HOME for and the location of the compat-glibc directory
    for . For example:
    My $ORACLE_HOME is:
    /u01/app/oracle/product/8.1.7
    and my compat-glibc directory is:
    /usr/i386-glibc21-linux/lib
    so the GROUP line looks like this for me:
    GROUP (/u01/app/oracle/product/8.1.7/lib/libc-2.1.3.so
    /u01/app/oracle/product/8.1.7/lib/ld-linux.so.2
    /usr/i386-glibc21-linux/lib/libc_nonshared.a)
    This is all one line.
    5. cd $ORACLE_HOME/bin
    6. Run the following command from the UNIX prompt:
    relink all
    All of the Oracle software, including the assitants, will work fine now.
    I have used this technique for RedHat 7.0 with the 2.2.16 kernel.
    Thanks to Richard Rankin for this simple and reliable method
    Regards
    Kamal
    <HR></BLOCKQUOTE>

  • How do I prevent Spotlight from categorizing 'JAR' files as 'Application'

    I'm a java developer and consequently I have a lot of JAR files on the filesystem. The JAR file format is a standard archive format for java, and is used mostly to package library code - the java equivalent of a DLL. They can also be created as 'executable JAR's, but this is (very) infrequent compared to the library usage.
    Spotlight seems to think every JAR file is an application, and because I have a lot of java applications and development stuff installed, I can no longer reliably use Spotlight to find actual applications because the search results are overflowing with useless JAR file entries.
    Is there any way to configure spotlight to not classify JARS as applications? Or, alternately, can I make Spotlight ignore JARs completely? Either would save me a lot of time..
    /Bill

    There are several things in the current version of Spotlight that are either broken or just plain wrong. It looks like you have found another. When I look at the metadata for a jar file I see that its type is, well, a java jar file, and its content tree declares it to be a com.sun.java-archive. Finder gets this right: if you do GetInfo on such a jar file its kind is shown as "Java JAR file"--as it should be.
    When I made a saved search, using the Kind drop-down menu to get the pre-defined Application, and then looked to see what criteria Spotlight was using to define "application" (and yes, the search included jar files in its results), I discovered Spotlight was NOT using the simple, straightforward "kMDItemKind=Application" as one would expect. Instead it is using something I had never heard of to define an Application, to wit "_kMDItemGroupId = 8"--furthermore, I believe characterizing applications that way has been deprecated. Be that as it may, it doesn't work to find the things you want, and exclude the things you don't.
    There is no way for a user to fix this. The only thing you can do is not let Spotlight define the kind. Thus, if you bring up a search window do not use the Kind drop-down menu to select Application. Instead select Other from the menu and then type Application. You then get only things whose type declaration is Application, and you don't get jar files or widgets.
    The other option is to exclude jar files by typing
    NOT jar
    in the search for box (you'll still get widgets though). You can also add that boolean restriction if you are using the menu bar Spotlight search.
    Francine
    Francine
    Schwieder

  • How to make jar file of application using JMF

    Hi
    i developed an application which uses JMF it works well during compilation and displays audio and video too.
    but after builting jar file it doesn't works.
    abdul

    Well you've found the root of your problem. It's not necessary the JMF. It's when you make a jar file, you need to include the dependencies. I don't think it' legal to include the JMF in a program you sell or distribute, so be careful there.
    However, to include dependencies in jar files is not a hard task. The simplest method is to unjar the dependency and place it at the top or your classpath; then make a jar that includes both your program, and the dependency.
    A more long term solution is to use a build system such as ant or maven to create the package using available scripts or plugins. The "Uberjar" plugin for maven comes to mind.
    -vito

  • While uploading Jar file, getting an error Jar file check failed VeryUrgent

    Hi SRM Experts,
    System  SRM 5.5 with ECS and ECC 6.0
    I am using Eclipse 3.5.1 to Download and Upload User Exits into SAP, While I was downloading user exits it was working fine. While I was Uploading User Exits, getting an error. Jar file check failed.
    As per User exits manual steps I have executed. But I was unable to upload a jar file successfully.
    Someone focuses light on this issue. Greatly appreciate.
    Awaiting for quick responses.
    Please focuses a light on this issue.  Common friends no one worked on this issue.
    Thanks in Advance.
    Regards,
    John

    pl check the info at below link
    may help you
    http://www.cs.utexas.edu/~scottm/cs307/handouts/usingJar.html
    BR
    Dinesh

  • JAR files don't run on Linux

    Hey All:
    I installed JDK1.3.1(win32) on Windows, double clicked my JAR file (proper manifest and classes within) and it started the swing program just fine.
    I installed JDK1.3.1(linux) on Red Hat 7, double clicked my JAR file, and it wants to know which Fk'n program to open it with! What happened here, I thought java/swing runs on linux?
    The JDK installed java in /usr/java/jdk1.3.1/bin/java, do I somehow need to point linux there for .jar files to execute automatically? What are the commands to do this?
    Thanks in advance,
    Stephan

    As far as I know, the double clicking on a jar file to execute it only works on windoze. On linux, you can can use:
    java -jar foo.jar&
    to execute the jar, assuming you have the main class included in the manifest. I don't know if there are any plans to change this. You should be able to write a script or somesuch which prepends 'java -jar' when you double-click.
    m

  • Jar file helper application

    I have a file extension (.hgf) that I would like to associate with with a Java jar file. I'm running Ubuntu 11.11 and in Dolphin (the file manager GUI) I use "java -jar ~/Havannah/HGui/HGui.jar" as my 'open with' and clicking on hgf files in Dolphin will automatically run my HGui.jar program with the clicked file as input.
    When I try to do the same thing in Friefox with 'open with' I cannot get it to work. The file gets saved in /tmp but HGui never seems to run on it. I've tried various combinations of quotes, putting the command into a shell script, etc., but cannot seem to get the click and open behavior I would love to see.
    Thanks in advance for any suggestions you might have!

    Simply putting the path to the jar file (making no mention of Java) and making the jar file executable was enough to make it work. This did not work in Dolphin so I did not even try it in Firefox -- until I got desperate.

  • How can I make .jar files for applications?

    My jar program creates jar files but won't open the program when I double click them. I use the command:
    jar cvf *.jar filenames
    The jar file is created but won't execute. Can anyone tell me what i am doing wrong?
    Thanks
    Jiby

    Hello !
    Well, I had the same problem a week or two ago !
    First, in your *.java, don't use any package...I mean, don't do a package of your program (I guess there is a way to make it work with, but it would need a little bit more work...).
    Then, with the jar tools, use the command
    -jar cf jar_that_you_want_to_create.jar class-that_you_include_in_your_jar.class
    With that, a jar will be created, and when you will try to "run" it, it will say that it can not find the main class...
    You need a Manifest !
    Create a text file MyManifest.text, and write that in your text file :
    Main-Class: classname
    follow the same as i wrote above. leave a blank after colon and a blank line after the first line like above.
    then, well, use tha jar tool again:
    -jar umf MyManifest.txt jar-file-you-created.jar
    To "run" it, double click on it, or use the java tool:
    java -jar jar_you_created.jar
    Thanks to Phani, who helped me with that !!
    Splitsch

  • RMI server error under Linux

    Hi all,
    I'm not excatly sure, whether this is the right forum. Anyway, my problem is this:
    I've written a JApplet that calls several methods over RMI. The RMI server is up and running properly. Most of the functions work well. One that initializes a JTree, however, causes problems. I get the following error message and I am stumped:
    java.rmi.ServerError: Error occurred in server thread; nested exception is:
         java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:289)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:536)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
         at de.uni_mannheim.wifo2.mlearning.portal.ServerFunctions_Stub.buildStructure(Unknown Source)
         at de.uni_mannheim.wifo2.mlearning.portal.CourseHandlerC.initialize(CourseHandlerC.java:68)
         at de.uni_mannheim.wifo2.mlearning.portal.MobilUM.actionPerformed(MobilUM.java:641)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
         at java.awt.Component.processMouseEvent(Component.java:5093)
         at java.awt.Component.processEvent(Component.java:4890)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3598)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3439)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
         at java.awt.Component.dispatchEvent(Component.java:3439)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
         at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:125)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:140)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
         at java.awt.Font.initializeFont(Font.java:309)
         at java.awt.Font.<init>(Font.java:345)
         at javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMetalTheme.java:195)
         at javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:153)
         at javax.swing.plaf.metal.DefaultMetalTheme.getUserTextFont(DefaultMetalTheme.java:137)
         at javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(MetalLookAndFeel.java:1405)
         at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:196)
         at javax.swing.UIDefaults.get(UIDefaults.java:126)
         at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
         at javax.swing.UIDefaults.getFont(UIDefaults.java:346)
         at javax.swing.UIManager.getFont(UIManager.java:491)
         at javax.swing.plaf.basic.BasicTreeUI.installDefaults(BasicTreeUI.java:596)
         at javax.swing.plaf.basic.BasicTreeUI.installUI(BasicTreeUI.java:530)
         at javax.swing.plaf.metal.MetalTreeUI.installUI(MetalTreeUI.java:86)
         at javax.swing.JComponent.setUI(JComponent.java:449)
         at javax.swing.JTree.setUI(JTree.java:551)
         at javax.swing.JTree.updateUI(JTree.java:567)
         at javax.swing.JTree.<init>(JTree.java:522)
         at javax.swing.JTree.<init>(JTree.java:498)
         at javax.swing.JTree.<init>(JTree.java:481)
         at de.uni_mannheim.wifo2.mlearning.portal.ServerFunctions.buildStructure(ServerFunctions.java:237)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:536)
    The entire system had been tested under a Windows XP environment and works without a glitch. Now I've installed the exact same system under unix and this happens!
    If anyone has an idea I would be very grateful!
    Kind regards,
    Falk

    Hi again,
    alternately I get another error doing the excat same thing:
    java.rmi.ServerError: Error occurred in server thread; nested exception is:
         java.lang.NoClassDefFoundError
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:289)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:536)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
         at de.uni_mannheim.wifo2.mlearning.portal.ServerFunctions_Stub.buildStructure(Unknown Source)
         at de.uni_mannheim.wifo2.mlearning.portal.CourseHandlerC.initialize(CourseHandlerC.java:68)
         at de.uni_mannheim.wifo2.mlearning.portal.MobilUM.actionPerformed(MobilUM.java:641)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
         at java.awt.Component.processMouseEvent(Component.java:5093)
         at java.awt.Component.processEvent(Component.java:4890)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3598)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3439)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
         at java.awt.Component.dispatchEvent(Component.java:3439)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    Caused by: java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:140)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
         at java.awt.Font.initializeFont(Font.java:309)
         at java.awt.Font.<init>(Font.java:345)
         at javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMetalTheme.java:195)
         at javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:153)
         at javax.swing.plaf.metal.DefaultMetalTheme.getUserTextFont(DefaultMetalTheme.java:137)
         at javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(MetalLookAndFeel.java:1405)
         at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:196)
         at javax.swing.UIDefaults.get(UIDefaults.java:126)
         at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
         at javax.swing.UIDefaults.getFont(UIDefaults.java:346)
         at javax.swing.UIManager.getFont(UIManager.java:491)
         at javax.swing.plaf.basic.BasicTreeUI.installDefaults(BasicTreeUI.java:596)
    at javax.swing.plaf.basic.BasicTreeUI.installUI(BasicTreeUI.java:530)
         at javax.swing.plaf.metal.MetalTreeUI.installUI(MetalTreeUI.java:86)
         at javax.swing.JComponent.setUI(JComponent.java:449)
         at javax.swing.JTree.setUI(JTree.java:551)
         at javax.swing.JTree.updateUI(JTree.java:567)
         at javax.swing.JTree.<init>(JTree.java:522)
         at javax.swing.JTree.<init>(JTree.java:498)
         at javax.swing.JTree.<init>(JTree.java:481)
         at de.uni_mannheim.wifo2.mlearning.portal.ServerFunctions.buildStructure(ServerFunctions.java:237)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
         at sun.rmi.transport.Transport$1.run(Transport.java:148)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:536)
    Thanks again!

  • 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

Maybe you are looking for