Java -jar Test.jar  option is not identifing the CLASSPATH on UNIX BOX

Hi All,
java -jar Test.jar
I am trying to execute Test.jar file using -jar option. I am able to excute the Test.jar file but it is not identifing the CLASSPATH set for other JAR files which is used in part of Test.jar. Saying java.lang.NoClassDefFoundError: for the class which are set in CLASSPATH.
The same is able to identify the CLASSPATH if i excute the Test.class file directly with out -jar option like
java Test. In this case everything is working fine.
Can any one tell me why it is not identifying the classpath if i use or execute with java -jar Test.jar option.
Thanks,
sha

When you use the -jar option, the only classpath that is used is the Class-Path in the manifest file of the jar. If there is no Class-Path, then only the jar is searched for classes. If there is a Class-Path, the paths must be relative to the jar file.

Similar Messages

  • Unrecognized option could not create the java virtual machine

    Hi
    I created a project using NetBeans. To run it from command line, i used clean and build.
    Then I entered the pathname as shown in the auto-generated readme file.
    However i get the following error message when trying to run it from command line:
    unrecognized option: -
    could not create the java virtual machine
    what did i do wrong?
    Thanks for your answers!

    solved.. i had a typo -.-

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • Import option is not showing the Data Source created using ODBC

    Hi all,
    I'm new to OBIEE, just installed OBIEE 10g in my system with the help of some reply from this Forum (thanks to Kalyan for this).
    Now when I tried to create new rpd, the Import option is not showing the Data source I have created. I have created new Datasource in the SystemDSN tab of the ODBC Administrator window,I have tried this by creating the Datasource in the UserDNS tab as well.
    Mine is Windows 7 Ultimate. The new data source which I have created through the ODBC Administrator window is to connect to SQL 2008 (I'm trying to get some table from SQL 2008 database), I don't have Oracle data base.
    While creating the Data source ODBC Administrator is showing only two drives (SQL Server and SQL Server Native Client 10.0 ) , so I have created the Data source using the SQL Server Native Client 10.0 drive.
    Can some one help me to understand the issue and to solve it.
    Thanks,
    Mithun

    By calling your cellular data provider.

  • The Move/Copy option does not show the phones gall...

    Hello,
    I want to move some photos (wallpapers) to the phone's Gallery to use them for slide set but I can't do that... The Move/ Copy option does not show the phones gallery. It only shows the MMC, Games and My Apps. Please tell me what should I do.
    Thanks.
    Moderator's Note: Post was moved and changed the title into a subject-related title. This is to keep the forum organized and let other forum users easily see and respond to this post.

    Because you posted this message in a thread about the Nokia 301 before, are you about a Nokia 301 as well?
    Nokia 301 » Menu » Apps » Files or Gallery » … » (do not open but highlight) your file » Options » Move. Did that help?

  • Error:This page contains content of "application/x-java-applet" type. You do not have the plug-in required to view this content.

    Hi....i m using Mac OS x 10.5.8 with safari Version 5.0.2 (5533.18.5). I just updated the Java version to Java 6 and now m getting below error:
    This page contains content of “application/x-java-applet” type. You do not have the plug-in required to view this content.
    Please help me out on this....

    I am also having a problem with this. My website is hosted through "www.onlinepictureproof.com" and now that my laptop is back from repair with OS X 10.6.8 I am unable to upload my photos to my work website. It says "a plug-in is needed to display this content. Install plug-in" and then a window pops up that says "no suitable plug-ins were found".  Below that is "unknown plug-in (application/x-java-applet)" with a link to "manual install" which takes me to "http://www.oracle.com/technetwork/java/index-jsp-141438.html#download" which just leaves me lost. I've tried downloading the "JRE" but I have zero idea what that means or if Im downloading the proper thing. Once I click on the "download JRE" it brings me to a download page where there are WAY too many items for me to choose from to download, when I have no idea what I need or why I need it. please help, this is driving me insane. I actually preferred my constantly crashing laptop to the state its in now, "like brand new" back from apple repair...I have already updated everything that is promted through "Software Updates".
    "OnlinePictureProof.com" only directs me to apple support.
    Thank you for any help you can offer!
    Sheila

  • Why MS JVM can not fine the classpath

    I have a applet and it's working fine with Sun JRE,but when I use MS JVM I always get error like can not fine the classpath,I alreday have created jar for all the applet class file and I have defined codebase and code ,using applet tag. I want to use Java1.1.
    I use NetBeans 3.6 compile the whole applet. and Can you tell me how to do?

    The applet probably includes code that is not supported by, or compatible with, the MS jvm. That error is a typical response to this cause.
    Try using the compiler option "-target 1.1". If that doesn't work, you could download an old jvm from Sun's archive page and recompile with it.
    If that doesn't work, then you have to rewrite the applet to use only code that can be run by the MS jvm.
    Be aware that there are differences between MS and Sun jvm's, so it may have to be rewritten no matter what.

  • How to execute a class wich is not in the classpath

    Sometime the server can't be shutdown and, if You add some new classes to Your system there's a classpath problem : in the classpath OC4J doesn't see new classes
    How can we solve that problem ?
    Is it possible to execute something wich is not in the classpath ?
    Can the classpath be changed at runtime ?
    TIA
    Tullio

    Please look at the following paper http://otn.oracle.com/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf
    tha describes how does classloading work in OC4J.
    You can deploy application using opn expanded directory structure if you are using OC4J standalone.
    Also you donot have to restart the server when classes are changed, you have to touch the application.xml for your application or web.xml for Web module to redeploy the apps.
    regards
    debu

  • Calling a newly deployed EJB from an EJB gives a NoSuchMethod Exception if the jar of the newly deployed ejb is not in the classpath

    Hi ,
    I have an EJB A which is already deployed when the server starts. A second ejb
    B is deployed at a later time.
    EJB A calls methods in EJB B. I use reflection in EJB A to call methods in EJB
    B.
    I get a NoSuchMethodException when I call the create method in the Home object
    of EJB B. If I add the ejb jar file to the classpath before the server starts
    then it is able to resolve the method.
    The problem is the EJBs which are called from EJB A is not known before the server
    is started. New EJBs can be deployed at runtime and EJB A should be able call
    the methods in newly deployed EJB's.
    I also use the URLClassLoader to load all the classes in the jar file of the newly
    deployed EJB in EJB A and it still gives a NoSuchMethodException because it cannot
    resolve the stub class.
    My error log is shown below.
    This is an urgent issue.
    Thanks
    SampleConnector::testEJBService called
    In Key : P1 Value : Input2
    In Key : P3 Value : Input1
    In Key : P2 Value : SomeConst
    Loaded Class = com.bizwave.samples.rejb.SampleRemote
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getDeclaredMethod(Class.java:1151)
    at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
    ctorEJB.java:181)
    at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
    ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
    at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
    viceStepMgr.java:91)

    Hi,
    I am attaching a test case. This test case actually demonstrates a security bug.
    Unzip the file and modify the StartWeblogic.cmd in domainA to not refer to the
    SampleRemoteEJB.jar in the classpath. If u run the test client under the client
    dir u will see a NoSuchMethodException.
    The reason is it is not able to load the dynamically generated stub file.
    Initially I had the getMethod and it didn't work. You might have to modify the
    files to suit ur env. The easier way is to run th edomain wizard and create 2
    domains. Run the servers in development mode and place the jars under the applications
    dir
    Thanks
    Rajesh Mirchandani <[email protected]> wrote:
    Do you have any old EJB classes in your classpath? Did you recompile
    your EJBs if you
    upgraded from a old release or a Service pack?
    Bob Lee wrote:
    Hmmmm. That's an interesting problem.
    Why is it giving you a NoSuchMethodException instead of a
    ClassNotFoundException?
    Can you post the code from SampleConctorEJB.java, line 181?
    Try changing your call to getDeclaredMethod() to getMethod().
    getDeclaredMethod() searches only the class you called it on, whereas
    getMethod() traverses to the superclasses and interfaces. You onlyneed
    getDeclaredMethod() when you're accessing a nonpublic method.
    Not sure if this will help, but it's worth a shot.
    Bob
    Vasu wrote:
    Hi ,
    I have an EJB A which is already deployed when the server starts.
    A second ejb
    B is deployed at a later time.
    EJB A calls methods in EJB B. I use reflection in EJB A to call methodsin EJB
    B.
    I get a NoSuchMethodException when I call the create method in theHome object
    of EJB B. If I add the ejb jar file to the classpath before the serverstarts
    then it is able to resolve the method.
    The problem is the EJBs which are called from EJB A is not knownbefore the server
    is started. New EJBs can be deployed at runtime and EJB A shouldbe able call
    the methods in newly deployed EJB's.
    I also use the URLClassLoader to load all the classes in the jarfile of the newly
    deployed EJB in EJB A and it still gives a NoSuchMethodExceptionbecause it cannot
    resolve the stub class.
    My error log is shown below.
    This is an urgent issue.
    Thanks
    SampleConnector::testEJBService called
    In Key : P1 Value : Input2
    In Key : P3 Value : Input1
    In Key : P2 Value : SomeConst
    Loaded Class = com.bizwave.samples.rejb.SampleRemote
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_EOImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_HomeImpl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteEJB_svq1df_Impl
    Loaded Class = com.bizwave.samples.rejb.SampleRemoteHome
    java.lang.NoSuchMethodException
    at java.lang.Class.getMethod0(Native Method)
    at java.lang.Class.getDeclaredMethod(Class.java:1151)
    at com.bizwave.samples.ejb.SampleConnectorEJB.testEJBService(SampleCon
    ctorEJB.java:181)
    at com.bizwave.samples.ejb.SampleConnectorEJB_be5y1v_EOImpl.testEJBSer
    ce(SampleConnectorEJB_be5y1v_EOImpl.java:98)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.bizwave.fc.utils.ClassUtils.invokeEJBMethod(ClassUtils.java:109
    at com.bizwave.infra.fjet.engine.EJBServiceStepMgr.executeService(EJBS
    viceStepMgr.java:91)
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support
    [user_projects.zip]

  • Classpath is not identifing the class file

    Iam developing cumtom java function event in Oracle WorkFlow. Here iam getting ClassNotFoundException. I included all class file in the jar file and the jar file added in the class path
    The problem seems be, java compiler not recognising the class which is there in the classpath.. any one suggest on this. ??

    Let's get this straight first: ClassNotFoundException is something that happens at runtime; that means you must have been able to compile your program successfully. So it is not the "java compiler not recognising the class".
    What does your classpath look like exactly?
    Is the class you are trying to use in a package?
    Are you correctly importing the class?
    Look inside the JAR files in your classpath to check if the class is really present in one of the JAR files.
    If you were able to compile the code successfully but you get an error while running it, then the compiler must have been able to find the class while you were compiling it. Are you passing the same classpath to the Java runtime environment as what you are using when you were compiling your code?
    And by the way, you posted this question in the forum about generics, but your question does not have anything to do with generics. Please post your questions in the appropriate forum in the future.

  • After looking at movies shared with my imac on my ipad, there is no option to not share the home library. How do I go back to just the movies on my ipad.

    I downloaded, through wi-fi sync, a slides how I made on my iMac to my iPad mini. 1) I didn't see the slides how in the video folder 2) I saw a share option in the video screen and chose my iMac Library. Then I saw the video, but I can't play it on my iPad unless I have iTunes connected on my iMac. 3). I cannot find in Preferences, or on the Video folder on my iPad a way to not share my library from my iMac. 
    Can anyone help me with this?

    Can you attach a screenshot and maybe post a link?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    If you have increased the minimum font size then try the default setting "none" as a (too) high value can cause issues.
    *Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    Make sure that you allow websites to choose their fonts.
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"
    *https://support.mozilla.org/kb/Changing+fonts+and+colors
    It is better not to increase the minimum font size, but use an extension to set the default page zoom to prevent issues with overlapping text.

  • Iphone 5 - Not working and usual options are not correcting the issue

    My iPhone 5 will not start.  I have tried many options listed on this site, however I have been unsuccesful in resolving the issue myself.
    This is an issue that I had last May, which resolved itself after 2 or 3 weeks.  I was discussing this with Apple support but got no answer on how to fix it.  As it 'self fixed' (i.e. I did not do anything new that I was not trying for 2-3 weeks already and the phone just began operating normally) I guessed it was fixed so I stopped looking for a solution to a problem that did not exist any more.
    However, the problem started again last week. 
    That is to say, the iphone powered down and could not be restarted immediately.  I used the 'hard start' option which worked a couple of times, but now it will not restart.  During an 'up' period, I upgraded the software to the lastest public release thinking that this might help.  However, it has not.
    Now, I only get a visual of the USB cord and a message to connect to itunes.  When I connect to itunes it does not recognize the phone but does recognize that there is a software error.  When I try to restore, it does not work as it brings me back to the error message.
    Anyone any ideas?  I am trying to organise the final pieces of my wedding in 6 weeks and I really need the phone to work right now! I will be contacting apple directly in the mean time, but if anyone has any ideas I would be very grateful.
    Thanks.

    Still I can't do anything ... the phone still same when i tried to re do the steps again given that itunes can't restore the phone " unkown error "
    What to do ?/??

  • JMS Listner: Test Configuration Successful but not listening the messages

    Hi,
    I have configured the JMS Listner adapter in IDM 7.0 with Sun MQ 3.5.
    My test configuration is susscessful. I have some messages on Sun MQ. I have one wotkflow associated with this adapter. I have mapped it via process rule of Edit Sync Policy. Now I want to read the messages from MQ and want to retrive in my workflow. But when I starts the scynchronization nothing comes to my workflow. The log is showing as
    2007-08-16T19:05:38.354+0530: SARunner: initialized adapter
    2007-08-16T19:05:38.404+0530: Initializing JMS Listener adapter.
    2007-08-16T19:05:38.414+0530: Setting up JMS: local_transaction:true ackMode:1
    2007-08-16T19:05:38.414+0530: Setting up JMS: user:admin password:<secret length=5/>
    2007-08-16T19:05:38.414+0530: Setting up JMS: destinationType=QUEUE connFactoryName=MyQueueConnectionFactory destinationName=MyQueue messageSelector=null
    2007-08-16T19:05:38.424+0530: Connection factory JNDI lookup returned an object of type com.sun.messaging.QueueConnectionFactory
    2007-08-16T19:05:38.504+0530: JMS connection and consumer successfully created.
    2007-08-16T19:05:38.514+0530: Connection JMS Info
    PROVIDER NAME = Sun Java(tm) System Message Queue
    PROVIDER VERSION = 3.5
    PROVIDER MAJOR = 3
    PROVIDER MINOR = 6
    JMS VERSION = 1.1
    JMS MAJOR = 1
    JMS MINOR = 1
    CLIENT_ID = null
    2007-08-16T19:05:38.524+0530: Done initializing JMS Listener adapter.
    2007-08-16T19:05:38.534+0530: SARunner: loop 0
    2007-08-16T19:05:38.955+0530: Started, paused until Thu Aug 16 19:05:38 GMT+05:30 2007
    2007-08-16T19:05:44.123+0530: Pause completed
    2007-08-16T19:05:44.333+0530: Polling
    2007-08-16T19:05:45.334+0530: Poll processed 0 messages.
    2007-08-16T19:05:45.334+0530: Poll complete.
    I am new with this adapter. Please anybody tell me what should I have to configure so that I would be able to read the messages from my JMS Listner Active Sync adapter?
    Thanks in Advance

    So, in order to get the message you have to map it. That is done be specifying the "Message Mapping", one of the Resource Parameters for JMS Listener. This can be done by specifying a rule that returns a <map> with the attribute. This would be, in my opinion, the preferred approach for text messages. For Map massages, the rule approach can't be used unless you use the jms java libraries, getString etc.
    You can also implement the com.waveset.adapter.jms.JmsMessageMapper if java is your cup of tea, and put that in the message mapping text box. Password synch uses a java class to do the mapping.
    To map the attribute called accId on the right side, you would use something like this:
    <Rule name='JMS Message Mapper Rule'>
        <block>
            <map>
                <s>accId</s>
                <ref>message</ref>
            </map>
        </block>The Message Mapping text box would in this case look like this:
    "rule:JMS Message Mapper Rule"
    The <ref>message</ref> part contains the JMS text message. In this case the message consist of only one word. In a real-life situation, you would send a bunch of information, perhaps using split to separate the data.

  • I have a hppsc 1310 series that prints the test page, butr will not print the selected document.

    I have a hppsc 1310 series that prints the test page when turned on, but will not print the document I want to print.  It shows in STATUS as printing, but it does not print.  I keep getting a message to install software and I do this.  I then get a message software installed, but it still will not print.  This just started about five days ago. 

    Hello ausection29,
    Most likely what is printed when you turn on the PSC 1310 is an alignment page. To complete the alignment process you need to place this page on the scanner glass and press the Scan button. The top of the page should be towards the left of the printer I believe, double check this on your printer (there should be a small icon next to the scanner glass showing which way the paper should be placed on the glass).
    You can have a look at step 5 in this document for a video of how to do this:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01577355&cc=us&lc=en&dlc=en&product=374568&tmp_...

  • Running a OpenScript test from OTM is not lauching the browser

    I'm trying to launch OpenScript test from OTM but it's not launching the browser. All it does in background, unable to see whats happening when running the test.
    Can anyone let me know what setting I need to correct in OTM to make the browser visible while running the test.

    Hi,
    Stop the OATS Agent service.  Open a command prompt and run the agent as a console app using the following command:
    C:\OracleATS\agentmanager\bin\AgentManagerService.exe -c C:\OracleATS\agentmanager\bin\\AgentManagerService.conf
    Then execute your test from OTM and you should see the browser and script execution,
    Regards,
    Jamie
    http://www.scl.com

Maybe you are looking for

  • New Mac Mini and Apple Cinema Display

    I have just upgraded my Mac (G5 PowerMac) to a new Mac Mini.  I am still using my Apple Cinema display - but I cannot not play all the purchased movies that I have on iTunes now...????

  • HT5642 WiFi speed issues with iPhone 4S since the update

    Since the update the WiFi on the iPhone is terrible. I run a 50mb speed and barley get 2mb. My iPad is getting 39mb speed. Is there a problem with this update for the iPhone that affects WiFi speed?

  • Reverse proxy query strings

    Hi got a reversse proxy running but no url's are cache where a query string is in the url. gif,doc, pdf are cached ok. what the max value for query-maxlen? will it accept 2000? any other ideas to check and try. i can't see any log into to tell my why

  • SECess field Greyed out in MIGO

    Dear All, I am processing for first stage delear invoice where I need to give the ED values manully. I have given for BED, AED, ECS. But SECess field is greyed out (non editable mode) so i am unable to give the value. Kindly suggest to make that fiel

  • Leica D lux 4  & Aperture 2 = Very Happy :-)

    I was always under the impression that the Leica D-Lux 4 Raw files would not work with Aperture 2, however playing around with the supplied Capture 4, I exported the files as DNGs and lo and behold they work in Aperture 2. Somehow I'd never managed t