Compiling in dos or unix

I wrote a program in Sun One studio and it will not compile in dos.
i have to hand in an executable. Or something that will compile. It works fine inside One Studio. But not outside. In the folder of my project there is a .java and a .class i even tested with a simple program
import java.io.*;
class Test {
public static void main(String arg[]) {
System.out.println("Hello");
And in dos i typed java Test.java and it gives an error saying thread main and somthing like classdefnotfound
someone please help

the command is java Test for running and javac Test.java for compiling, it should work. If you still get error, check your classpath varible.

Similar Messages

  • Command to compile a form in Unix command line

    What is the command to compile a report in Unix command line for Oracle Developer Suite 10g Form version 9.0.4.0.19? Thanks.

    I am not quite sure but as I remember it is something like:
    rgen10*.exe something on oracle_home/bin directory
    Hope this helps
    Ghulam

  • How to compile forms in a UNIX CLI?

    Can anybody tell me how to compila a form in UNIX with Oracle 6 or 6i?
    I know I have to use the 'f60gen' or 'f60genm' commands, but I don't know witch arguments I have to use.
    Thanks in advance,
    Pablo.

    Hi!
    Try out this:
    f60gen forname user/password
    f60gen myform.fmb scott/tiger
    c u

  • Compiling Forms on a Unix Server

    Hello,
    I was wondering if there was a way to compile forms on a Unix server from the command line? Right now we are using Reflection X and form builder on the Unix server to compile.
    Is there any alternatives to Reflection X?
    Any help would be appreciated.

    In a normal vt100 telnet session, i use
    f60gen $formname $usern module_type=$moduletype Compile_All=YES
    cheers
    Yogeeraj

  • How do i see the current version of compiler installed in the unix machine

    how do i see the current version of compiler installed in the unix machine

    Hi
    For the compiler
    $ CC -V
    CC: Sun C++ 5.7 Patch 117830-02 2005/03/30
    or
    $ cc -C
    cc: Sun C 5.7 Patch 117836-03 2005/05/11
    For full details,
    $ version
    Machine hardware: sun4u
    OS version: 5.8
    Processor type: sparc
    Hardware: SUNW,Sun-Blade-1500
    The following components are installed on your system:
    Sun Studio 10
    Sun Studio 10 C Compiler
    Sun Studio 10 C++ Compiler
    Sun Studio 10 Tools.h++ 7.1
    Sun Studio 10 C++ Standard 64-bit Class Library
    Sun Studio 10 Garbage Collector
    Sun Studio 10 Fortran 95
    Sun Studio 10 Debugging Tools (including dbx)
    Sun Studio 10 Debugger GUI
    Sun Studio 10 Performance Analyzer (including collect, ...)
    Sun Studio 10 X-Designer
    Sun Studio 10 VIM editor
    Sun Studio 10 XEmacs editor
    Sun Studio 10 Native Connector Tool
    Sun Studio 10 LockLint
    Sun Studio 10 Building Software (including dmake)
    Sun Studio 10 Documentation Set
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.7 Patch 117836-03 2005/05/11
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.7 Patch 117830-02 2005/03/30
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95 8.1 Patch 117834-02 2005/03/30
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx Debugger 7.4 117844-01 2005/03/05
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun Performance Analyzer 7.4 2005/01/07
    version of "/nobackup/pfloyd/opt/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun Distributed Make 7.6 117838-01 2005/03/04
    Paul

  • Execute stored procedure from DOS or Unix Shell

    Hi, need ur help again,
    How to execute the stored procedure from DOS or Unix Shell?
    Thanks!

    sqlplus -s /NOLOG @your_sql_script.sql
    -- your_sql_script.sql :
    connect user/password@connect_string
    execute package.procedure (param1, param2, ...) -- for packages
    execute procedure (param1,...) -- for procedures
    exit ;this way you won't advertise your user/password on unix systems

  • Compiling forms 10g on unix hpux

    Hello all,
    I need to compile my forms for unix hpux platform, as my pll and reports, can anyone please help me doing it.
    Thanks in advanced

    Hi ,
    Use the following Command :
    <ORACLE_HOME>\bin\frmcmp.sh Userid=<CONNECTION_STRING> Module=<MODULE_PATH>
    and optionally specify the Module_Type=LIBRARY in case you want to compile library ,
    Best Regards,

  • MS-DOS-COMPATIBLE  & UNIX COMPATIBLEAre these names of operating systems

    http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3dd1358411d1829f0000e829fbfe/content.htm
    please rerer to above link----I have the following difficultiy
    i)     Could an  O/S  be added to any syntax groups?
    ii)     It is written for MS-DOS & UNIX   Suntax  groups -
    thier names to be
    MS-DOS-COMPATIBLE  & UNIX COMPATIBLE----
    Are these names of operating  systems or that these fielda are empty?

    Hi,
    This means that depending on your Operating System on which SAP is placed, you can mention the OS in Syntax group.
    DOS/Unix Compatibile simply means that your Syntax group would be able to work in DOS Operating System or Unix Operating system.
    Best regards,
    Prashant

  • How to compile a Form in Unix

    Dear all
    I am using forms 10G.
    I have a form and I want to compile it in Unix .
    Can you please tell me the solution step by step .
    I was reading the old blogs here ,and tried the same but did not get the solution .
    Please help me .

    for %%f IN (*.fmb) do frmcmp.sh userid=userid/password@DB1 module=%%f batch=yes module_type=form compile_all=yes window_state=minimize
    Is this comand will work ?On Windows yes, on Unix no, that's the Windows syntax.
    How can I give the fmb name instread of "compile_all=yes " ?"compile_all=yes" doesn't mean compile all forms, but compile all Pl/Sql code within the form. On Linux I use something like the following :. $HOME/.bash_profile
    export Filename=$1
    if [ "$Filename" ]
    then
      Filename=`echo $Filename | cut -f1 -d"."`
    else
      Filename=*
    fi
    for FRM in $Filename.fmb
    do
            echo $FRM
            $ORACLE_HOME/bin/frmcmp.sh $FRM username/password@DB module_type=form 1>$FRM.log 2>&1
    doneIf you execute the script with a form name as argument, only that form will be compiled, otherwise all forms within the directory will be compiled.

  • Error compiling in DOS while creating uderdefined pakages

    well i created 2 folders in my working directory pac1 and pac2 wherein i compiled couple of programs in each folder. when i compile the main prog inmy working directory in dos prompt..its not able 2 open the pac1 folder and execute th reqd classes..also when i extend the classes from one package 2 another..it shows error tht the classes dont exist.how do i solve the prob in dos prompt

    Please read [_How To Ask Questions The Smart Way_|http://www.catb.org/~esr/faqs/smart-questions.html].
    Especially the parts that ask you to [_Write in clear, grammatical, correctly-spelled language_|http://www.catb.org/~esr/faqs/smart-questions.html#writewell].
    Also, telling us how you tried to compile your code and the exact error message you get would help tremendously with finding a solution.

  • Error in Compiling a form on Unix.

    I not getting changes made to an existing form to compile in Unix. I have tried using the command line as well as compiling in Forms Builder.
    Please help.
    Thanks.

    Instead of calling the command from the windows shell command interface, I was able to call the compilier from Data Services; this problem is now resolved.

  • Noob and trying to compile in Dos

    When I try to use the javac command in dos to compile my program I always get this message "this program cannot be run in dos mode". I set all the paths and correctly and am just using notepad to write the code. How can I fix this problem. Please help!!! Thanks

    Are you restarting your Windows system in DOS mode just to compile your programs? Don't do that. Just look for either "MS-DOS" or "Command Prompt" in your start menu. That will open a DOS box where you can compile and run your programs.

  • Compiling in DOS?

    ...ok...i am using a book to learn the basix of Java and i have come across to compiling my first program
    the program is saved in the dir. C:\javawork with the file name HelloSailor.java
    but in dos, the 8 character limitation of hte filename and 3 char. limitation of extension has condensed the file to HELLOS~1.jav and when i put the command
    javac C:\javawork\HELLOS~1.JAV
    i get
    "Bad command or file name" in response...does anyone else have this problem or kno wut i'm doing and how i can fix it??

    The real answer to this question is, the filename you enter after the javac command IS A PARAMETER to javac. Thus the reflected dos name you see on the screen is accessible from DOS, but the Windows long filename is acessible to javac THROUGH its parameter "filename.java".
    javac -g filename.java
    gives two parameters to javac
    (1) -g
    (2) filename.java
    (3) no other parameter.
    Sammi Na Boodie(java beginner)

  • Compiling C++ API on Unix

    Hi All,
    I am using C++ API for the first time in Unix.
    I installed the Berkeley DB and I set LD_RUN_PATH & LD_LIBRARY_PATH
    to point to '/usr/local/BerkeleyDB.4.5/lib'.
    Here is the sample program that I am trying to compile:
    ========================================================
    * See the file LICENSE for redistribution information.
    * Copyright (c) 1997-2006
    *     Oracle Corporation. All rights reserved.
    * $Id: EnvExample.cpp,v 12.3 2006/08/24 14:45:49 bostic Exp $
    #include <sys/types.h>
    #include <errno.h>
    #include <iostream>
    #include <stddef.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <db_cxx.h>
    using std::ostream;
    using std::cout;
    using std::cerr;
    #ifdef macintosh
    #define     DATABASE_HOME     ":database"
    #define     CONFIG_DATA_DIR     ":database"
    #else
    #ifdef DB_WIN32
    #define     DATABASE_HOME     "\\tmp\\database"
    #define     CONFIG_DATA_DIR     "\\database\\files"
    #else
    #define     DATABASE_HOME     "/tmp/database"
    #define     CONFIG_DATA_DIR     "/database/files"
    #endif
    #endif
    void     db_setup(const char *, const char *, ostream&);
    void     db_teardown(const char *, const char *, ostream&);
    const char progname = "EnvExample";               / Program name. */
    // An example of a program creating/configuring a Berkeley DB environment.
    int
    main(int, char **)
         // Note: it may be easiest to put all Berkeley DB operations in a
         // try block, as seen here. Alternatively, you can change the
         // ErrorModel in the DbEnv so that exceptions are never thrown
         // and check error returns from all methods.
         try {
              const char data_dir, home;
              // All of the shared database files live in /home/database,
              // but data files live in /database.
              home = DATABASE_HOME;
              data_dir = CONFIG_DATA_DIR;
              cout << "Setup env\n";
              db_setup(home, data_dir, cerr);
              cout << "Teardown env\n";
              db_teardown(home, data_dir, cerr);
              return (EXIT_SUCCESS);
         catch (DbException &dbe) {
              cerr << "EnvExample: " << dbe.what() << "\n";
              return (EXIT_FAILURE);
    // Note that any of the db calls can throw DbException
    void
    db_setup(const char home, const char data_dir, ostream& err_stream)
         // Create an environment object and initialize it for error
         // reporting.
         DbEnv *dbenv = new DbEnv(0);
         dbenv->set_error_stream(&err_stream);
         dbenv->set_errpfx(progname);
         // We want to specify the shared memory buffer pool cachesize,
         // but everything else is the default.
         dbenv->set_cachesize(0, 64 * 1024, 0);
         // Databases are in a subdirectory.
         (void)dbenv->set_data_dir(data_dir);
         // Open the environment with full transactional support.
         dbenv->open(home,
    DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN, 0);
         // Do something interesting...
         // Close the handle.
         dbenv->close(0);
    void
    db_teardown(const char home, const char data_dir, ostream& err_stream)
         // Remove the shared database regions.
         DbEnv *dbenv = new DbEnv(0);
         dbenv->set_error_stream(&err_stream);
         dbenv->set_errpfx(progname);
         (void)dbenv->set_data_dir(data_dir);
         dbenv->remove(home, 0);
         delete dbenv;
    ========================================================
    I used the following command to compile:
    g++ -o first -L/usr/local/BerkeleyDB.4.5/lib/libdb_cxx-4.5.a first.oand I am getting the following link errors:
    first.o(.text+0x244): In function `db_setup(char const*, char const*, std::basic_ostream<char, std::char_traits<char> >&)':
    : undefined reference to `DbEnv::DbEnv(unsigned int)'
    first.o(.text+0x336): In function `db_teardown(char const*, char const*, std::basic_ostream<char, std::char_traits<char> >&)':
    : undefined reference to `DbEnv::DbEnv(unsigned int)'
    first.o(.gcc_except_table+0x24): undefined reference to `typeinfo for DbException'
    collect2: ld returned 1 exit status
    I looked at a couple of threads in the forums that relate to this but NO LUCK !!
    Any Help please !

    Hi,
    You'll want a compile / link command like this:
    $ g++ -o first first.o /usr/local/BerkeleyDB.4.5/lib/libdb_cxx-4.5.a
    or this:
    $ g++ -o first first.o -L/usr/local/BerkeleyDB.4.5/lib -ldb_cxx-4.5
    The first command explicitly links against the static library, the second doesn't specify static or shared, but will usually choose the shared library if it is available.
    Regards,
    Michael.

  • Compiling at DOS prompt?

    When compiling at the DOS prompt one gets an error because one can only use 3 letter extensions unlike what is needed for "javac simple.java" and "java simple.class"

    One does? I suppose if you had DOS 6.0 without Windows you would have this problem... is that what you have?

Maybe you are looking for

  • BI-IP Characteristic Rel. Part 2

    Hi I have edited the code under method Derive with no syntax errors. Now when I activate the code, I get the following error message: Class ZCL_RSPLS_CR_EXIT_0FISCPER,Public Section     26     @0A\QError@ Implementation missing for method "CONSTRUCTO

  • Can i put more than one apple tv in my house?

    I have 4 different tvs in my house, can i put an apple tv on each of these tvs?

  • When I select anything the mac "beachball' appears, sugesting a script hanging?

    After updating my Mac OS on my Mac mini I've started to get the Mac 'beachball', suggesting a problem is occuring, browsing is slowed and sometimes hangs. I've just updated to Lion OS in the hope that the problem disappeared, but it didn't. My final

  • Forms Builder-hierarchical tree(expanding and collapsing nodes)

    hi friends, can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding? for instance when_button_pressed: tree_control.expand_all(tree_control.v_item_name); //this is for expanding all the nodes in the tr

  • Xselsius in the HEBREW language

    Hello, In Xselsius, when I write the title or any text with fonts from the HEBREW language I cant see the fonts in the published report. I'm getting blanks instead. Please Advice, David