Problem in compiling in command line

Hi! I used absolutelayout in my java programs, i have no problem running it on SunOne and NetBeans, but when i run it on a command prompt(DOS prompt) i encountered "no class definition error". I already checked the classpath and working directory but the problem still occurs..
Pls help me with this..Thanks in advance..
More power to you!
Allan

A piece of failing code, the command you used to compile the code, and the specific error message you are seeing may help people answer the question.
Also, as you're posting in the Java Runtime Environment forum, you are using the Java SDK, aren't you? The JRE does not contain the tools required to compile code.
Regards,
Bhaveet

Similar Messages

  • DrJava compiles,.. command line does not.

    All my files are in the directory:
    ... /alak/codeFiles/
    package alak.codeFiles;
    import alak.codeFiles.Game.*;
    public class AlakApp extends JApplet implements ActionListener
    private alak.codeFiles.Game alakGame;
    }When I compile this in DrJava it compiles but doesn't work when i jar it up and test it in a browser. When I compile it in the command line on Windows using:
    inthecorrectDIR> javac AlakApp.java
    I get this error:
    AlakApp.java:8: package alak.codeFiles.Game does not exist
    import alak.codeFiles.Game.*;
    ^
    AlakApp.java:30: cannot find symbol
    symbol  : class Game
    location: package alak.codeFiles
      private alak.codeFiles.Game alakGame;
                            ^
    AlakApp.java:53: cannot find symbol
    symbol  : class Game
    location: package alak.codeFiles
        this.alakGame = new alak.codeFiles.Game( this.boardSize );
                                          ^
    3 errorsCan please someone help me understand why this isn't working?
    EDIT: I'd like to mention that all the files are in the correct directory and compile and work (with the exception of AlakApp) under DrJava. But when I try compile one of these files that depends on another, via the command line, it gives me the errors I stated.
    Edited by: MDalrymple on Dec 13, 2007 10:57 PM

    I am in F:\alak\codeFiles\ when I used the command javac AlakApp.java
    I tried:
    F:\alak\codeFiles> javac -cp F:\alak\codeFiles\ AlakApp.javaAnd I still get the same errors
    EDIT: Problem fixed:
    The error was that I need to be compiling all of the files in the alak.codeFiles package at once. So I just used:
    F:\alak\codeFiles> javac -cp F:\alak\codeFiles\ *.javaSince all of the java files there were in that directory were the ones that needed to be compiled I just used a wild card.
    Edited by: MDalrymple on Dec 14, 2007 7:04 PM

  • Compile using command line

    Hi,
    I'm using JBuilder, and now I'm trying to compile the project in command line, using javac, or jar.
    I want to create JAR file, and it is very complicated and contains many files.
    Is there any way to exctract the command from JBuilder? Or from Ant?
    Thanks

    Yes, you can generate an Ant build xml script using JBuilder. Read the online help on how to do it.

  • IPA Compiling from Command Line on Windows OS

    Hello guys,
    I have tried with this compiler and realized that it is faster than compiling on CS5 a lot. I also made a template for this, and using to make IPA for my serveral iPad apps.
    Here is the way to create my template:
    1. Create a new folder somewhere named: iPadBuilder (as Flex/Flash Builder ^^), then copy "lib" folder from Program Files\Adobe\Adobe Flash CS5\PFI into it.
    2. In iPadBuilder, make a new folder for your new app, such as HelloWorld, and create files like following tree:
    Note: pfi.bat is located in Program Files\Adobe\Adobe Flash CS5\PFI\bin folder.
    + iPadBuilder
              + lib
              + HelloWorld
                             build.bat
                             pfi.bat
                             Default.png
                             helloworld.swf
                             helloworld-app.xml
                             + 03_Certificates
                                       + Digital_Signature
                                                signnature.p12
                                       + Provisioning_Profile
                                                 profile.mobileprovision
                             + AppIconsForPublish
                                          icon29.png
                                          icon57.png
                                          icon512.png           
                             + flv
                                       sample1.flv
                                       sample2.flv
    You can create build.bat file using NotePad or any text application:
    pfi -package -target ipa-test -provisioning-profile "03_Certificates\Provisioning_Profile\profile.mobileprovision" -storetype pkcs12 -keystore "03_Certificates\Digital_Signature\signnature.p12" -storepass your_signature_password "HELLOWORLD.ipa" "helloworld-app.xml" "helloworld.swf" "Default.png" "AppIconsForPublish/icon29.png" "AppIconsForPublish/icon57.png" "AppIconsForPublish/icon512.png" "flv"
    pause
    With this build, I include the flv folder so that I can play local video using NetConnection and NetStream. If you don't want, just delete it, otherwise, add more by "images" for adding images folder into your app.
    That' all, everytime you want to make a new build, just override your app.swf, and then double click build.bat, and waiting, you will see it's faster than using Flash CS5 a lot.
    And if you want to make new app, just copy the Helloword folder, and change some filenames. And remember to change the ITALIC text in build.bat file if your files have changed.
    Hope it will help you.

    I've done a lot of command line compiling, especially when trying different combinations of splash screens (where I didn't need to recreate the swf each time), and certainly it saves you a lot of time over doing a publish in Flash each time. But given that Flash uses the pfi anyway, I think that if you add the time it takes to make your swf again, and add that to the time to compile the ipa, it will be a similar time to how long it takes to publish in CS5.
    Out of curiosity though, how do you just make the swf? If I set another player type, to just get the swf, I then get lots of compiler complaints over the iOS specific code. I guess that if you're not doing any orientation things you'll get away with selecting Flash Player 10.1 as the player type.

  • The Problem about using OTT command line

    Environment variables:
    oracle_home=c:\oracle
    command line:
    ott userid=scott/tiger intype=demoin.typ outtype=demoout.typ code=cpp hfile=demo.h cppfile=demo.cpp mapfile=RegisterMappings.cpp
    error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/ott/c/CMain
    where should I place the all the classes(not only the CMain.class) of oracle package?
    or what others should I have to configure?
    thanks!

    install xe client
    set ORACLE_HOME to the client installation path.
    ******************************ott.bat******************************
    @echo off
    Rem OTT script for Oracle XE .
    Rem Before running this script
    Rem set jdk1.4.2/bin to PATH
    Rem If ORACLE_HOME is not set, set the
    Rem CLASSPATH to the directories containing
    Rem ojdbc14.jar,orai18n.jar and ottclasses.zip
    Rem
    if defined ORACLE_HOME set CLASSPATH=%ORACLE_HOME%\jdbc\lib\ojdbc14.jar;%ORACLE_HOME%\jlib\orai18n.jar;%ORACLE_HOME%\precomp\lib\ottclasses.zip;%CLASSPATH%
    set NLSLANG=
    if defined NLS_LANG set NLSLANG=NLS_LANG
    if defined ORACLE_HOME (
    java oracle.ott.c.CMain nlslang=%NLSLANG% orahome=%ORACLE_HOME% %*
    ) else (
    java oracle.ott.c.CMain nlslang=%NLSLANG% %*
    )

  • 2.3.10 -- Problem openning environment from command-line

    I am just starting to learn DB XML. I have downloaded and apparently successfully installed DB XML 2.3.10 (on a Ubuntu 6.06 Linux system). I am reading Danny Brian's book "The Definitive Guide to Bekeley DB XML". In Chapter 5, a command is shown to open/create an environment:
    <pre>
    $ dbxml -c -h myenv/
    dbxml> quit
    </pre>
    According to the book, I should expect to see 2 files in myenv/ --> __db.001 & __db.002
    I have created the directory myenv/ and set my defaullt to its parent. When I try this command, I get the error messages shown below:
    <pre>
    dbxml -c -h myenv/unable to initialize mutex: Function not implemented
    PANIC: Function not implemented
    unable to join the environment
    dbxml: error at lowest level: DbEnv::open: DB_RUNRECOVERY: Fatal error, run database recovery
    </pre>
    Adding a couple -vv's to the commands produced no more output! Have I successfully installed 2.3.10? Is there anything I'm doing wrong??
    Thanks,
    Denny

    I downloaded the 2.3.10 kit from the Oracle DBXML website a weekago. I unpacked the kit into /usr/local then ran sh buildall.sh!! (2.2.13 is also installed/build in /usr/local)
    I just now started another rebuild with the following commands (all while logged on as root:
    1. cd /usr/local
    2. rm -r dbxml-2.3.10
    3. tar -xvf <kit location>
    4. chown -R root:root dbxml-2.3.10 (was owned by cupsys:users??!!)
    5. sh buildall.sh
    This time, as all the checking messages came by, I noticed that selected mutex = x86/gcc-assembly
    There is one big difference between what I had been doing and this latest attempt: Previously, I unpacked the kit inot my home directory, then did:
    sudo mv <home copy of dbxml> /usr/local
    sudo chown -R root:root ......
    sudo sh buildall.sh
    Could using sudo been the cause of my problem??!!
    I just checked the db-4.5.20 config.log and saw
    db_cv_mutex=x86/gcc-assembly
    Earlier this week (as reported in an earlier response to this post), db_cv_mutex was set to POSIX-something!!??!!
    I am hopeful!!
    Denny

  • JSPC Compiler gives FileNotFound Exception from command line

    I have problem running jspc from command line
              From the browser, the jsp pages compile fine.
              I have tested this on NT 4.0 and on HP UX 10.0 with Weblogic Server
              4.5.1 and SP 9.
              The command I typed in as follows:
              $java weblogic.jspc -d /opt/b2berp/jspclassfiles/ - docroot
              /opt/b2berp/web -keepgenerated true -classpath
              /opt/jdk/1.2.2/lib/classes.zip:/opt/weblogic/weblogicaux.jar:/opt/b2berp/lib
              I get the following exception:
              I checked the file is in PATH and I am also specifying the absolute path
              and filename.
              My document directory is /opt/b2berp/web/auctions/
              All of my jsp pages are under /opt/b2berp/web
              This is also my web folder.
              Gives error unable to find file
              (FileNotFoundException)
              Does anyone know what is going on.
              Rauf
              

    Hi,
              did you place setWLSEnv in your path ?
              ----Anilkumar kari

  • Problems with in/out points when submitting jobs via Terminal/command-line

    I've writting a GUI based script which allows a user to select a source Quicktime file, and will encode that file to multiple formats, and trims each destination based on specific timecode in/out points. However, I'm having problems getting the Compressor command-line interface to honor the in/out timecodes that I've explicitly set for multiple jobs within a single commandline.
    In other words, if I want to encode a source Quicktime between 01:00:00:00 and 01:00:29:23 with just ONE setting/destination, then the following commandline works:
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923
    But if I try to append multiple settings/destinations to the commandline, Compressor will only honor the -in/-out arguments which appear in the LAST -jobpath instance in the commandline.
    For example, the following commandline will properly encode the file to multiple destination files, using the appropriate .settings file, but it ignores the -in/-out points that were set for any -jobpath instance that appears before the last -jobpath instance (in other words, every file is output using 00:59:57:00/01:00:30:01 as the in/out points, instead of having the "*_OTWC.mov" file output using 01:00:00:00 as the in point)
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923 -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/HNN-HD.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_HNN-HD.mov -in 00595700 -out 01003001
    It's wierd that everything else about this command-line syntax works as expected (and as explicitly stated in the Compressor -help output, which says "when submitting individual source files. (The) Following parameters are repeated to enter multiple job targets in a batch"), except for the -in/-out points.
    I've even tried quoting the -in/-out arguments using colons (e.g., -in "01:00:00;00") , but this doesnt appear to change the behavior.
    Is this a bug, or am I missing something here?

    I've writting a GUI based script which allows a user to select a source Quicktime file, and will encode that file to multiple formats, and trims each destination based on specific timecode in/out points. However, I'm having problems getting the Compressor command-line interface to honor the in/out timecodes that I've explicitly set for multiple jobs within a single commandline.
    In other words, if I want to encode a source Quicktime between 01:00:00:00 and 01:00:29:23 with just ONE setting/destination, then the following commandline works:
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923
    But if I try to append multiple settings/destinations to the commandline, Compressor will only honor the -in/-out arguments which appear in the LAST -jobpath instance in the commandline.
    For example, the following commandline will properly encode the file to multiple destination files, using the appropriate .settings file, but it ignores the -in/-out points that were set for any -jobpath instance that appears before the last -jobpath instance (in other words, every file is output using 00:59:57:00/01:00:30:01 as the in/out points, instead of having the "*_OTWC.mov" file output using 01:00:00:00 as the in point)
    /Applications/Final\ Cut\ Studio/Compressor.app/Contents/MacOS/Compressor -clustername MHM -batchname CLI_BATCH -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov  -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/OTWC.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_OTWC.mov -in 01000000 -out 01002923 -jobpath /Volumes/mel/temp/20120329/TEST_SRC.mov -settingpath /Volumes/common/settings/compressor/M9_Slave/_Local_/HNN-HD.setting -destinationpath /Volumes/mel/temp/20120329/TEST1234_Testing30_HNN-HD.mov -in 00595700 -out 01003001
    It's wierd that everything else about this command-line syntax works as expected (and as explicitly stated in the Compressor -help output, which says "when submitting individual source files. (The) Following parameters are repeated to enter multiple job targets in a batch"), except for the -in/-out points.
    I've even tried quoting the -in/-out arguments using colons (e.g., -in "01:00:00;00") , but this doesnt appear to change the behavior.
    Is this a bug, or am I missing something here?

  • Problem Using Sax parser with Eclipse 3.0 and command line

    Hi,
    I am parsing a xml file with sax. When I am running my programm in the command line everthing is ok and I get the right results from parsing.
    But if I am running the programm in Eclipse 3.0 (the same java code) I get an other result (the wrong results).
    Does anybody know what this can be the reason for. Is Eclipse using an other xml parser and if where I can change the parser?
    It would be very kind if somebody can give me a reason for this strange behaviour.
    Thanks in advance

    I have solved my problem.
    In the command line I used jre 1.4 and in Eclipse I used jre 1.5.
    I think jre 1.5 uses an other xml parser so I got an other result.
    If i use in Eclipse jre1.4 I get the same result as in the command line.

  • Command line Argument Problem - '*'

    Hi, Is there any problem in giving * as Command line argument.
    My student was trying to write a calculator program but stuck :
    Code Sample
    public class test
    public static void main(String[] args)
    System.out.println(args[1]);
    java test 2 + 2
    No Problem
    java test 2 * 2
    gives Problem

    It's not relevant to the programming language. The shell is what expands the *.
    OTOH, I heard that MS-DOS filename expansion is spotty (that's been my experience actually) and that Java has a workaround built into it to make it make sense.
    I'd encourage you to change the assignment (or however this is working out) to allow your student to submit the entire expression as a single argument:
    java Calculator '2 * (3 + 2)'

  • Problem using sql command line

    Hello!
    I do have some problems with using the command line for INSERT statements. When I perform insert statements the data of these statements are lost as soon as I close the command line. Other statements like SELECT or CREATE TABLE work properly.
    any idea?
    regards
    D.

    I do have some problems with using the command line
    for INSERT statements. When I perform insert
    statements the data of these statements are lost as
    soon as I close the command line. Other statements
    like SELECT or CREATE TABLE work properly.
    Have you run "COMMIT", after insert statement ??
    You need to run "commit" (preferable) or exit (Oracle explicit commit on exit).
    You might have close the sqlplus window without running above command.
    See following thread for explanation with example
    Re: commit problem!!
    Virag

  • Compile Webhelp from Command Line

    I downloaded the trial version of RoboHelp 7 and had some
    issues running in trial mode on my Vista machine. After much
    frustration, I gave up and got it to work on my XP machine. The
    main reason why the developers want me to upgrade to RoboHelp 7 is
    for the compile via command line feature enhancement. I have been
    tasked to test it out.
    Well, I could not find any instructions in the online help
    nor on the Adobe website on what to key in the command line when
    compiling Webhelp. So I need some assistance. Can anyone provide
    this information?
    Also, I have conditional tags applied to the project. Do you
    have to add any additional code to the command line?

    Welcome to the forum.
    Go to Tools | Options and select the Use Offline Help option.
    Then search again on command line.

  • Use third party framework in Command Line Tool

    Hi.  I'm writing a small application for a friend of mine, and basically what it does is lets you put in some information, and then creates and stores that information in an Excel file.  However, all of my research suggests that C++ doesn't work nicely with Excel files, so I found a 3rd party framework called LibXL which provides C++ with the ability to create and edit Excel files.  My only problem is getting my Command Line Tool to use this framework.  I'm not even sure if it is possible, but if someone could help me out, I would really appreciate it!
    P.S: I'm using XCode 4.2 to write this application, and I'm using Command Line Tool because the application has to be useable on Windows.

    That last one is an excellent punch line!
    >I found a 3rd party framework called LibXL which provides C++ with the ability to create and edit Excel files.
    That should be coming with a manual. Some frameworks can be included in their entirety into the program you are writing, where for others you can only reference to it and you have to distribute the framework file(s) along with your own application. This doesn't sound like one, but an external framework may only be meant for GUI functions, in which case you cannot write a Terminal-only program.
    But here comes the kicker:
    >P.S: I'm using XCode 4.2 to write this application, and I'm using Command Line Tool because the application has to be useable on Windows.
    It's possible for you to *write* the program but not to compile it. (Actually, you *can* compile it but then you have a Mac Terminal program, not a Windows one.) Even if you know what you are doing and are happy with sending over the source code, together with instructions on how to compile it under Windows, this implies you would only and *exclusively* use functions that are available in compilers for Windows. That rules out your External framework idea -- unless there is a Windows version available as well (do check for that; if this is an Open Source project, there very well may be.) But you are still programming "blind", and if you get it to work on your Mac (and nevermind the problem with the framework being external, because you won't need to send it over anyway) but your friend canNOT make it work under Windows, you won't know if it's because the Windows version of the compiler doesn't accept the external library, or it's the wrong version, or you accidentally used a Mac-only feature anyway, or the friend does not know how to compile ... et cetera, et cetera.
    Best advise is to install VirtualBox (or something similar) on your system, test all you want with XCode but then, after you got it to work, carry over the project into Windows and start a-new.

  • How To Parse The Command Line?

    Hello,dear. When I writing a C/S mode application,which performing download and upload files between the FTP server and the clients, I encountered the problem of parsing the command line.
    I intend to download file from the server side ,using this following format ,which is composed by four arguments:
    ftp>receive server's IPaddress portnumber filename
    The problem is I don't know how to parse the command line and store them to some objects and using it.
    I'm right here waiting for the nice problem-shooter.
    Thanks for reading my poor expression.

    In your console application main class
    public static void main(String[] args)
    // code
    args is a sting array with the command
    line itemsI think you missed the point or forgot the ":-)". This is the "Socket", not the "New to Java" forum.

  • How do I change my password on the command line?

    How does a user change their password on the command line in 10.4? This user is not an admin. I can try "passwd" and it asks for my old password, and then new password. Then it just says "Sorry" and does not change my password.
    Thanks!

    Is the user able to change the password from "System Preferences" > "Accounts" - i.e is the problem specific to the command line? If the user is unable to change their password at all, and the Mini has an Intel processor, they may be affected by the issue described here:
    http://docs.info.apple.com/article.html?artnum=304703
    Other users have posted here indicating that reinstalling the 10.4.8 update using the "combo" updater as suggested in the article has resolved the issue for them...

Maybe you are looking for

  • CS4 & CS5 Swatches Palette

    Hi there, i know this is small but i wondered if we could have it fixed for CS6. CS3< were fine with this because they did not have custon UI, but CS4 was bad, and CS5 is slightly better but still wrong. Its just the swatches window, all of the color

  • Tutorial with screenshots Configuration of Mobile Administrator

    Hello Everyone, I followed this guide [https://cw.sdn.sap.com/cw/docs/DOC-36599] , I have Sap Nw 7.0 SP13 and I have to build applications with J2EE (JSP, Servlet, Abap4) as described in MDK 2.5. But I have this problem: [http://farm5.static.flickr.c

  • PC-Cam Center

    I have creative pc-cam 600, and I lost the pc-cam center software. Where can I find it's (I'm not looking for drivers!)

  • Error: unable to install Flash 12 on macbook pro Os 10.9.2

    Hello, since I uninstalled flash with "AppCleaner" for macbook pro I can not install it. After downloading, at the time of installation, comes the message "Error: Failed to complete installation". (I use Firefox and Safari browsers) thanks [email pro

  • Adding of Recipients in Alert Configuration

    Dear Experts, I have done Alert configuration. The Alert Category is Moved to Development to Quality. In Quality I need to Add two More Recipients How can I add When I am trying to Add I am getting Error : " The Client is Not Modifiable" we are using