Running class files from the windows command line...

Hello Everyone,
My instructor showed us a way to run class files from the windows command line. However every time I try to run the class file from the command line using a command like: java CruiseHelper.class
I get an error that states "Exception in thread "main" java.lang.NoClassDefFoundError: CruiseHelper/class"

Hello Everyone,
My instructor showed us a way to run class files from
the windows command line. However every time I try
to run the class file from the command line using a
command like: java CruiseHelper.class
I get an error that states "Exception in thread
"main" java.lang.NoClassDefFoundError:
CruiseHelper/class"Classes are not file names. You don't have a class named "CruiseHelper.class", that's a file name. The class name is just CruiseHelper (if you have no package statement in it).
So,
java -classpath . CruiseHelper

Similar Messages

  • How to Invoke tasks created in FrameMaker Publishing Server from the Windows command line

    Hi All ,
    i would like to know how can we Invoke tasks and schedules created in FrameMaker Publishing Server from the Windows command line.
    we used publishing server mainly to convert Frame maker files into PDF and that should be do progarmatically without manual intervention on Demand.
    so could you please let us know how can i invoke rthe task creted to convert FM file to PDF in FrameMaker Publishing Server from the Windows command line.
    please let me know the command to execute .
    thank you and waiting for valuable response.
    best regards
    Ramesh babu

    Please see http://blogs.adobe.com/techcomm/2011/03/adobe-framemaker-server-10-and-its-command-line-ca pability.html for the same.
    Harish Dhawan

  • How do I generate PDF and CHM files from the a command line in windows?

    I am trying to set up a PC to build some documents during the night. I was looking for a way to get framemaker to generate PDF and CHM files via a command line in windows? How is this done with FrameMaker 12
    Thanks for the help
    Alex

    Hi,
    The part with generate a PDF via a jsx seems to work OK, except when FrameMaker decides that it will not work anymore. I must say I am not impressed with the stabillity of FrameMaker 12, there is room for a lot of improvement!.
    I have given up on how to figure out how to get FrameMaker 12 to generate chm files via jsx scripts, any pointes are still very welcome.
    The route I have taken is I make a RoboHelp project for each chm files I need to generate. The only thing this RoboHelp project contains is a link to the actual FrameMaker project I want to generate a chm file.
    To make the chm I start RoboHelp with a script that
    1) Opens the desired project
    2) Sets the desired output chm files name
    3) Generates the chm file
    4) And finally quits RoboHelp
    Below is a copy of the jsx in case anyone can reuse anything.  And yes parameters are transfered via enviroments variable. I have later learned there is some way to read the parameters given at a command line but this seems to work so I stick to this for now.
    // Get parameters
    var RhProjName = $.getenv("RH_PROJ_NAME");
    var RhChmName = $.getenv("RH_CHM_NAME");
    var RhLogFileName = $.getenv("RH_LOGFILE_NAME");
    var RhLogFile = new File(RhLogFileName);
    RhLogFile.open("w", "TEXT");
    RhLogFile.writeln("RH_PROJ_NAME : ", RhProjName);
    RhLogFile.writeln("RH_CHM_NAME : ", RhChmName);
    doc = RoboHelp.openProject (RhProjName, 1);
    var sslmngr = RoboHelp.project.SSLManager;
    for(var i = 1; i<=sslmngr.count; i++){
      var ssl = sslmngr.item(i);
      if(ssl.name == 'Microsoft HTML Help') {
        // Set the output location and file name
        ssl.setSpecificProperty("DestinationProjectName", RhChmName);
        if (doc.saveAll(true) ) {
          RhLogFile.writeln("saveAll returned TRUE");
        } else {
          RhLogFile.writeln("saveAll returned FALSE");
        if ( ssl.generate() ) {
          RhLogFile.writeln("ssl.generate returned TRUE");
        } else {
          RhLogFile.writeln("ssl.generate returned FALSE");
      } else {
        // alert ("Found " + ssl.name + " dont do anything");
    doc.saveAll(true);
    RhLogFile.close();
    RoboHelp.closeProject();
    RoboHelp.quit();

  • Running Mac apps from the Unix command line

    I hope I don't offend Mac lovers with this question, but as a total Mac newbie, I find Finder cumbersome. This may change as I learn all the features and keyboard shortcuts. but I don't think so. I've been playing with computers for 40 years and Unix for 30 and I know what I like. I like a command line interface, and prefer to avoid the point and squint interface to the extent possible.
    I'd prefer to run everything from the shell, and not finder. So to run safari, I'd like to do something intuitive (to me, at least) like type ...
    bash# safari
    ... instead of marching around in Finder or using the dock and the mouse.
    Can any of you Mac hackers give an old Unix hacker a pointer to a clue?

    Yes, I'm way too cheap to buy the book. I can't imagine how much I've saved over the years, always being way too cheap to buy the book. Easily enough to pay for the spiffy new computer.
    No Windoze experience? You may think you do, but really, you don't know how lucky you are. My Vaxen ran 4.1 BSD though 4.3 BSD. I've played with a lot of flavors of unix. My favorite flavor in recent years has been FreeBSD, so I began paying close attention to the Mac since OS X.
    X11 and Xcode were the first things I installed. I've been poking around, reading the docs, and getting a better handle on it all. I've only scratched the surface of the stuff on your pages, and it's been most helpful. There's good stuff there for unix newbies too.
    If it were not for Jerry Garcia, I probably never would have had the stones to open my mouth in front of a microphone.

  • How can I import eex files into Applications EUL from the unix command line

    How can I import *.eex and *.dis files into an Applications EUL from the unix command line?
    Thanks

    Hi
    The simple answer is you either have to use the client tool DIS51ADM to import files using the command line (Discoverer Admin is a windows only client tool), or the Java command line which needs a browser.
    In theory if you have a browser running on your Unix box you may be able to use the Java command line to make this work.
    Best wishes
    Michael

  • Please help: Running a java script form the windows command line.

    Hello forum,
    I'm trying to run a java script from the command line on
    windows but I always get the "Failed to open document" alert.
    I typed the following in the run command line:
    "flash.exe" C:\Documents and Settings\Hasan.Atieh\My
    Documents\science\java scripts\testing jsfl\get_files_mx2004.jsfl
    now I copied and pasted the path of my java script file from
    the windows explorer address bar so I'm sure that the java script
    file exists in the specified path.
    Any thoughts why am I getting the message!!

    :oops: never mind... issue resolved. I didn't quote the java
    script file path but thats because the help documents on flash
    didn't say that.
    this is what flash help say:
    To run a script from the command line on Windows:
    Use the following syntax (add path information as required):
    "flash.exe" myTestFile.jsfl

  • Unable to run reports from the unix command line

    hi
    all of a sudden i am unable to run reports ( on App server 10g) either from the unix scripts or from the unix command line. But i can run them from the forms.
    Any one have any idead about this.
    Thank you

    thanks all for replying
    i have set the env variables for the session and it worked. Looks like i have to set the oracle_home and ld_library_path every time ( opening a new putty session) i call sqlldr.
    But in a whole i am trying to run sql loader from the forms. Right now we have Oracle app server 10g which forms 10g version. As oracle app server 10g didnt come with sqlldr, we are copied the sqlldr of database on to app server with different home. after this we can run sqlldr ( on app server ) from unix scripts but not from Forms. Then we opened a qurey with oracle about app server 10g not commig with sqlldr and its remedy . But they said that they dont have specific remedy for that and suggested the same what we did.
    So we came up with java package which does the same funtion as host command and trying to run sqlldr which is on the database( ie replacing the host command in the forms with the database funtion). By using that funtion i am able to run the sqlldr from sql plus but not from forms. I couldnt easily debug it as i wont through any error messages.
    Any one have any idea of this ...
    Thank you

  • Launched from a windows command line

    If my labview app is run remotely from a windows command line, is there any way to tell programmatically from a variable somewhere that it was launched by another app and not by the operator manually launching the app itself ?

    Hello id,
    If you have control over the application that's invoking your exe through the command line, I'd suggest using a simple custom argument that is passed to the application per this KnowledgeBase:
    KnowledgeBase 1CNFGHFI: Passing Command Line Arguments to a LabVIEW Executable
    http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364
    You would then use the App.Args property (Application:Command Line Arguments Property) to check for your "this launched from the command line via this other application" argument, whatever it might be. I would suggest that you should only need to check for *any* arguments, if they're present then you know it's been launched via the command line. The argument could just be the name of the calling application.  If you're unable to insert arguments via the invoking application, you could also use a one-line batch file that's installed with the target EXE to do the same thing (you'd run the batch file instead of the executable from the invoking application).
    Determining where an application was invoked from without sending it that information explicitly is another, trickier problem- there are plenty of discussions on stackexchange and elsewhere detailing possible solutions, but if the invoked application (your EXE) isn't owned by the command prompt process I'm not sure it's possible.  There are a few mentions of checking environment variables that the command prompt usually sets to see if they've been configured, but I have no experience with this.
    Best Regards,
    Tom L.

  • How to compile an .air app from the ADT command line?

    Hi,
    I would like to compile an .air app from the ADT command line.
    Does anybody have an example?
    I don't know how to add the AIR SDK path and a folder to it.
    Is there a generator for the command line availabble?
    Thanks

    Correction: it seems that Applescripts and some similar scripts can be called from the command line using "osascript scriptname". I don't speak automator but you might like to try it. osascript seems to come with severe limitations though, for instance it doesn't allow user interaction such as dialogue boxes.

  • Running  .class file from autoexec.bat (in Windows Xp environment)

    How to run a .class file from autoexec.bat file. I have WinXP installed on my PC. I tried the solution given by Forum memebers but they didn't work.
    after setting the classpath
    i wrote
    java -cp simple in autoexec.bat , but results were not satisfactory.

    What does "not satisfactory" mean? If the commans works from any .bat file, it'll work from autoexec.bat, too.
    May I ask what you're trying to accomplish? I'm not sure whether XP dtill uses autoexec.bat for console initialization after all.

  • Running jar files from the command line

    I have always felt it would be useful to run a jar file from th command line in EXACTLY the same way as an EXE. On some systems, typing MYAPP.JAR will run the app, but doesn't output and command line data, so it only works for GUI apps. I've come up with a tiny C program that runs java -jar xxxx.jar for you.
    #include <stdio.h>
    #include <string.h>
    #include <process.h>
    void main(int argc,char *argv[])
         char cmd[1024];
         strcpy(cmd,"java -jar ");
         strcat(cmd,argv[0]);
         strcat(cmd,".jar");
         for(int arg=1;arg<argc;arg++)
              strcat(cmd," ");
              strcat(cmd,argv[arg]);
         system(cmd);
    }Simply compile this to an exe, rename the exe to the name of your jar file and put it in the same directory. Then just type 'MyJarFile' (no jar extension) and it should run. It passes all command live args as well. Comments ?

    Here's a better version. The JAR and the EXE can be anywhere in the PATH:
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <process.h>
    void main(int argc,char *argv[])
         char jar[1024];
         char cmd[1024];
         strcpy(cmd,argv[0]);
         strcat(cmd,".jar");
         _searchenv(cmd,"PATH",jar);
         strcpy(cmd,"java -jar ");
         strcat(cmd,jar);
         for(int arg=1;arg<argc;arg++)
              strcat(cmd," ");
              strcat(cmd,argv[arg]);
         system(cmd);
    }

  • Inputting non-visual characters from the shell (command line)

    is it possible to capture user input from the command line (using System.in or any other available method) that contains characters that are not printing characters and are not legal in a java.lang.String? i.e. is it possible to write a program that recognizes the arrows and CTRL, SHIFT, and ALT keys as input without using graphical (Swing or AWT) classes in the program?

    No. Shift, ALT and CTRL are key modifiers. Perhaps JCurses would allow you to check for these modifiers as Swing does.
    Brian

  • LabView equivalent to running batch files using the "shell" command (VisualBasic)

    I'm converting a VisualBasic app to LabView and am having trouble figuring out how to run a batch file with LabView.
    The VB code that I'm trying to replicate is:
    'UNLOAD RTX DRIVERS
    Dim ProcessId As Long
    ProcessId = Shell(App.Path + "\UnloadReloadRTX.bat", vbNormalFocus)
    Wait 400
    I haven't found a LabView equivalent to the Shell command. Any suggestions will be appreciated.
    thanks,
    Todd

    It seems as if this question pops up every week. Use the System Exec.vi found under Funtions - Communications palette. It is the equivalent of Shell.
    - tbob
    Inventor of the WORM Global

  • How do I initialize a trust database (Security Create Database) in Iplanet6 web server from the Solaris command line?

     

    Hi,
    There is no option to create trust database from command line. You have to do it from GUI only.
    Thanks,
    Daks.

  • Can't run java .class programs from Windows command line!

    I have tried to get a program that I wrote with the JDK to run from the Windows command line, but it is not working. I typed:
    java HelloWorld
    Where my .class was HelloWorld.class, a compiled java program. I spelled the name correctly (and I am in the correct directory), yet I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    I think something is screwy with windows, but that's just me. Any ideas??

    Likely a CLASSPATH issue - try
    java -classpath . HelloWorldGood Luck
    Lee

Maybe you are looking for

  • Windows 8.1 Update - issues deploying printers via GPO from a 2012R2 Print Server

    Hi, I am trying to deploy a single printer to Windows 8.1 clients in a K-12 environment. We have about 1200 laptops and about 25% of those laptops are installing the printer. Several different users can log on and the printer may or may not be there.

  • Electronic signature - I am not able to sign it, it appears "cryptoghrapy problem code error 13" ?

    Last week I was able to sign documents electronically. I got the version Adobe Distiller 9. My electronic signature is linked to a FIS certificate issued by Exostar. This is a corporate FIS certificate, work for Rolls Royce. Everytime that I am going

  • Version Mismatch on Deployment

    Hi, I think I have a version mismatch problem here on deployment, but cannot figure out how to resolve it. We have two ASP.NET web apps deployed, called App1 and App2. Both use Crystal Reports. The reports display fine in a report viewer on App1 but

  • Standard Preview versus 1:1 preview

    I've always been curious about the differences between these two previews. Given the fact that Import can optionally generate a standard preview, why would I want a 1:1 preview? And if 1:1 is preferable should a standard preview not be performed duri

  • Signal recovery 7225 lock-in - Dumping curve buffer issue

    Hi there I am programming an experiment that requires me to take data fast using the curve buffer of my lock-in amplifier (Signal Recovery 7225).  I have been using the supplied vi files in labview, but seem to be having a problem with the read buffe