Results 1 to 5 of 5
  1. #1
    XM9
    XM9 is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Java does not do anything

    Hi people, new here.

    I'm am trying to use a program written in Java. NASA Worldwind, however i am getting no help from their forum, as they are not responding, so i am here to ask for help.

    I have a batch file that i need to run called run-demo.bat, it's contents look like this

    REM Windows Batch file for Running a WorldWind Demo
    REM $Id: run-demo.bat 6 2011-07-17 16:20:15Z dcollins $

    @echo Running %1
    java -Xmx512m -Dsun.java2d.noddraw=true -classpath .\src;.\classes;.\worldwind.jar;.\worldwindx.jar;. \jogl.jar;.\gluegen-rt.jar;.\gdal.jar %*


    When i run the batch file, the dos box looks like this



    C:\worldwind-1.2.0>REM Windows Batch file for Running a WorldWind Demo

    C:\worldwind-1.2.0>REM $Id: run-demo.bat 6 2011-07-17 16:20:15Z dcollins $
    Running

    C:\worldwind-1.2.0>java -Xmx512m -Dsun.java2d.noddraw=true -classpath .\src;.\cl
    asses;.\worldwind.jar;.\worldwindx.jar;.\jogl.jar; .\gluegen-rt.jar;.\gdal.jar
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -d32 use a 32-bit data model if available
    -d64 use a 64-bit data model if available
    -server to select the "server" VM
    -hotspot is a synonym for the "server" VM [deprecated]
    The default VM is server.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions with specified granularity
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    -agentlib:<libname>[=<options>]
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
    load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
    load Java programming language agent, see java.lang.instrument

    -splash:<imagepath>
    show splash screen with specified image
    See Java SE Documentation at a Glance for m
    ore details.

    C:\worldwind-1.2.0>


    So, obviously it does nothing. What is it missing ? Can someone please help me out ?
    thanks
    XM9

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,655
    Blog Entries
    7
    Rep Power
    21

    Default Re: Java does not do anything

    You're supposed to supply an argument to that demo bat file; most likely a .class file ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    XM9
    XM9 is offline Member
    Join Date
    Apr 2012
    Posts
    2
    Rep Power
    0

    Default Re: Java does not do anything

    hi, thanks for the response, i got the following

    run-demo.bat gov.nasa.worldwindx.examples.Application Template

    where do i insert this ? in all of the above ?

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: Java does not do anything

    You need to get some foundation in Java before trying to run stuff you get off the net.
    The Java™ Tutorials

    Start with the 'Getting Started' section.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,091
    Rep Power
    20

    Default Re: Java does not do anything

    That's the command you run at the command line.
    It looks like this is a command line batch file, and not something to simply double-click.
    You could change the BAT file, but I would suggest simply running from the command line myself.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •