Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Lauching a standalone java application

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lauching a standalone java application

    Hi Everyone,

    Would you please give me help. I am a beginner java developer and am trying to run java application that is suppose to give me access to some APIs which I need to use in my other application that I am busy working on. Basically this is a jar file that I am trying to run, it was given to me by a Senior Architect who is the Lead in the project that I am working on. When I launch the jar file it gives me the following error: Unable to launch application

    When I click on 'Details' for this error I get the following exception :
    CouldNotLoadArgumentException[ Could not load file/URL specified: C:\Users\jmweli\AppData\Local\Temp\javaws5]
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    The Wrapper exception is : ava.io.IOException: File too large
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescript or(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


    Initially I was running on java 1.6.0_32 and my Tech Lead who can lauch this jar file on his machine without issues is running on java 1.6.0_31 and he therefore suggested that I downgrade to the same version as his. I did that but still not luck. I then did some searches on google trying to find help to resolve this issue. I find a lot of suggestions like cleaning the java cache, unistalling java web start but everything I have tried so far has not helped.

    Any suggestions you may have with regard to solving this issue will be greatly appreciated.

    Thanks
    Johannes


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Lauching a standalone java application

    I don't see any references to your program in the posted error messages.

    Try opening a command prompt window, change directory to folder with the jar file and enter:
    java -jar <JARFILENAME>.jar

    Copy and paste the window contents here.
    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Lauching a standalone java application

    Maybe that helps:
    To your problem: Java has 2 ways to start applications. You can start Java-Applets from the internet and you can start applications, which are on your Computer. The java application from the net has very low permissions on your computer. And your system, it seems your are trying to start a local application with the java for the internet. You can try to open the .jar file with the other java by doing: right click on the jar -> "open with..." -> and there you look for the "Java(TM) Platform SE binary". If you can't see it there you can select it manuell by clicking on "browse" -> go the where you have java installed and there in the /bin directory -> and select "javaw.exe" -> open it, and press ok. After this, StreamRipStar should start. I don't have a english version of Windows here, so the steps my variate or have other translations. I hope you know what I mean. btw: if you have this problem with other java applications. the "javaw.exe" is for starting the local stored applications the "javawc.exe" is for starting the java-applets from the internet
    found here: SourceForge.net: StreamRipStar: how to for noob

    ( sorry for the title )

Similar Threads

  1. Replies: 5
    Last Post: September 26th, 2011, 12:54 PM
  2. how to run any installed application through my java application??
    By sgsamanthjain in forum Java Theory & Questions
    Replies: 1
    Last Post: April 1st, 2011, 08:17 AM
  3. Replies: 1
    Last Post: January 12th, 2011, 05:55 AM
  4. Database in a standalone computer
    By Abednego Setyawan in forum JDBC & Databases
    Replies: 1
    Last Post: April 7th, 2010, 09:24 PM
  5. Replies: 0
    Last Post: December 3rd, 2009, 04:43 PM