Java.exe problems. - can't run without class being placed in bin

this is weird, but it's happened to me before. Something on my pc isn't letting me run my class files unless I actually place them in the bin directory under jdk1.3.1_02.
what's the deal?
I've checked my env. variables, but I don't know if I have them wrong or what.
Can someone please help?!
c:\ java Client
Exception in thread "main" java.lang.NoClassDefFoundError: Client
Sam

Actually I would bet money all he needs is the classpath statment such as I directed a few posts up..
He needs the period at the end to tell the java interpeter to search the present directory...
Most of you are mistakeing his questions. If the compiler could not find the class files it wouldn't compile. Since he said he get's the error when:
c:\ java Client
Exception in thread "main" java.lang.NoClassDefFoundError: Client
Tells me that he wrote a program called Client and the interpeter can't find his compiled class file..
Because the class path variable isn't set to present directory (the piriod) I had this same problem the first time I installed java.. It drove me nuts. I spent 2 months programming out of the bin directory before I found the classpath statment.. hehe (hey we were all beginners once)
Gehan
Ps. If you want convermation on what I said go read the link I posted on classpath statments

Similar Messages

  • Can not run file.class with Internet Explorer ( Please help me)

    Please help me ! ! (Beginer Programming)

    First, you can't run a .class file. Secondly, you have to post your code, that is the only way we could help

  • How can i run my .class file with out installing java ?

    Hai friends..am new to java , plz help me any one.
    I wrote a small program in java lang. i want to run this program in my friend's system , which is doesnt have java language .. How can i run this program in my friends system with out installing java language?
    one of my friends told that ,it needs to copy the jvm in to ur directory where the java code is present . How can i copy the jvm from where to where ..?plz help me any one

    Your friend will have to install the Java runtime if they want to run Java
    programs.
    Don't go copying files yourself - and especially don't go copying them to the
    location of the Java code. After all, if your friend wants to run 42 different
    Java programs they shouldn't have to have 42 copies of the runtime.
    Just download and run the installer from this site:
    http://java.sun.com/javase/downloads/index.jsp
    Be careful to download the "Java Runtime Environment" not the JDK.

  • Java.exe problem

    Hi,
    Would anybody please help me with this problem.
    I tried to execute java.exe with the command: java -Djava.library.path=E:\Program Files\Testing TestApp, it threw exception could not find the the path since there is a blank space between Program Files. I tried to put quotation marks around them, I got same problem. Java command seemed like did not like space. If I move my lib to new place e.g Test and execute my TestApp with the command: java -Djava.library.path=E:\Test TestApp, it worked fine. How can I solve this problem without remove space in the path.
    Thanks
    Hung

    i think you want to point to your programe classes.
    if so use
    java -classpath "E:\Program Files\Testing" TestApp
    because
    java.library.path contains many pathes related to JRE.
    D:\Java\sdk\jre\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Java\sdk;D:\Java\sdk\bin;D:\Java\J2EE\bin;D:\Java\WSDP\bin;D:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell
    try this
    System.out.println(System.getProperty("java.library.path"));-Best regards,
    mnmmm

  • Windows xp and java.exe problem

    Hello all..
    I tried to execute have a batch file consisting a jar file and classes in windows xp platform. I used j2sdk1.4.0_03. All my classes are stored in : C:\MyDocument\Softwares\classes directory
    and the jar files are in: C:\MyDocument\Softwares.
    I wrote the following commands in the batch file:
    java -classpath C:\MyDocument\Softwares\classes;
    C:\MyDocument\Softwares\jexcelapi.jar mainClass
    When I lauched that batch file, a message came out:
    java.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
    Could you tell me where the problem is and why? Do I need windows xp patch to eliminate the problem? And where can I find that patch?
    Thanx for any suggestions...
    Richard

    Thanks for your comments. I have tried to reinstall the J2SDK, but then another error message appeared:
    Error occured during the initialization of VM
    java/lang/NoClassDefFoundError:java/lang/Object
    I've checked my Path and it's set as following:
    C:\j2sdk1.4.0_03\bin;
    and my classpath setting:
    C:\MyDocument\Softwares;C:\MyDocument\Softwares\classes;C:\j2sdk1.4.0_03\lib;
    When I tried to execute the java command in any directory (inclusively in C:\MyDocument\Softwares) I always got that message. The only directory where I was able to run the command is in C:\j2sdk1.4.0_03\bin;
    Before I did the reinstallation, I never had such a problem.
    Have any hits? Thanks in advance..

  • Applet can not run without JRE

    I have compiled the applet with J2SE 1.4.0. When I tested on the browser IE 5.0 in my computer, it could run because there is JRE included by J2SE 1.4.0 in my computer. When I tested in other computers, it can not run.the display only gray rectangle and there was a statement x.class is not found in bottom bar.The browser IE 5.0 is java enable. But when I access the webpage that include java application in the same computer without JRE, that could run.
    what wrong?
    thanks

    It is likely that the applet you compiled is using bytecode or features that the other machines don't recognize/have. If the other machines have the MS Java virtual machine but don't have the Sun virtual machine, try compiling the applet with the compiler option "-target 1.1" and see if that helps. It may, unless you used Java features that don't exist in Java 1.1 (for instance Swing classes). If so, then the other machines won't be able to run the applet unless they have the Sun jvm installed (like your machine).

  • Can MRP run without Planning File Entry?

    Hi,
        I came across an issue where MRP is running accurately without any Planning File Entry for a material in E.C.C.6.
        My Understanding is MRP can NOT run w/o PFE u2013 which is a mandatory prerequisiteu2026..BUTu2026???
    TRY itu2026   1.in OMDU find a plant where MRP is NOT active,    2. Create a Material with all required data (I used ROH, Proc.Typreu2013 F, Strategy u2013 70, Mixed MRP-1, Ind/Coll u2013 2)   3. Activate MRP for the Plant in OMDU.   4. Create Demand according to strategy (I used VSFB in MD61).   5. Run MRP & complete procurement as many times u want.   6. In this process anytime u can check in MD21 u2013 there is NO PFE.
         Can someone tell me what the reason / logic are behind? Is there any OSS note for it?

    Dear ACCPP12,
    1) in which t-code your running MRP, i suspect your running in MD02
    2) MD02 & MD03 does not require Planning file entry
    3) MRP gives results with out planning file entry by the above mentioned t-codes
    4) where as if your going with MD01, then Planning file entry is required for materials
    Regards
    Madhu Kumar

  • Can weblogic run serializer classes created by wscompile tool

    Hi,
    I am trying to deploy a webservice on weblogic.
    This webservice implements a given wsdl.
    I have created type mapping classes from 'wscompile' tool and not by 'autotype'
    provided by weblogic as i want my code to follow JAX-RPC standards and it should
    not depend upon weblogic classes.
    when i package the webservice and deploy it on weblogic, i get the following error:
    weblogic.webservice.server.ConfigException: failed to add type mapping to registry:
    - with nested exception:
    [java.lang.InstantiationException: com.egain.adapter.StartMonitoringResponse_LiteralSerializer]
    at weblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.java:228)
    How can we deploy a webservice created with JAX-RPC standard (with either Apache
    Axis or JWSDP) on weblogic?
    I am using WLS 7.0 SP1.
    Thanx for any help in advance.
    Davinder

    JAX-RPC serializer classes are not portable. So you can not use the
    serializer classes
    generated by Sun's RI in weblogic JAX-RPC runtime.
    provided by weblogic as i want my code to follow JAX-RPC standards and itshould
    not depend upon weblogic classes.You dont have to refer any weblogic specific classes to use WLS JAX-RPC
    impl. You
    only need to use the weblogic provied tools. The application code you write
    is portable.
    Check out the edoc for more details:
    http://edocs.bea.com
    -regards,
    manoj
    "davinder" <[email protected]> wrote in message
    news:3e66e03a$[email protected]..
    >
    Hi,
    I am trying to deploy a webservice on weblogic.
    This webservice implements a given wsdl.
    I have created type mapping classes from 'wscompile' tool and not by'autotype'
    provided by weblogic as i want my code to follow JAX-RPC standards and itshould
    not depend upon weblogic classes.
    when i package the webservice and deploy it on weblogic, i get thefollowing error:
    >
    weblogic.webservice.server.ConfigException: failed to add type mapping toregistry:
    - with nested exception:
    [java.lang.InstantiationException:com.egain.adapter.StartMonitoringResponse_LiteralSerializer]
    atweblogic.webservice.server.WebServiceFactory.initTypeMaps(WebServiceFactory.
    java:228)
    >
    How can we deploy a webservice created with JAX-RPC standard (with eitherApache
    Axis or JWSDP) on weblogic?
    I am using WLS 7.0 SP1.
    Thanx for any help in advance.
    Davinder

  • IPod Touch Won't Update to iOS5 without error message (-43) stating all contents will be deleted. How can I update without everything being deleted?

    Hi there,
    I have an iPod Touch 3rd generation (Model A1318). For the last several months I keep trying to update to iOs 5 and it gets stuck during the backup phase and an error message pops up:
    As half of my songs are not iTunes purchases, therefor not on the cloud, I do not want to start from scratch and have everything deleted. Also, Apple does not allow you to extract songs back off the pod easily to backup, so it would present a serious hassle reuploading hundreds of songs from CDS etc. Can anyone help explain this message? Has anyone hit continue with the update occurring smoothly without anything being erased? Any guidance much appreciated. I tried several times disabling my anti virus software during the process like others have said on the boards and in the Apple store but the same message and outcome. For reference, I'm using Windows Vista and the most recent iTunes 10.6.1.

    See my response to your other post.
    The automatic iTunes backup does not contain any synced items like apps, music (either iTunes purchases or not). There is no difference in what is backed up. See:
    iTunes: About iOS backups

  • JAVA ME - Problems compiling and running (using Eclipse)

    Hello,
    I am new to Java ME and I am trying to run a copied HelloMIDlet application. I am getting following error when I am trying to run the application:
    Running with storage root C:\Users\Niklas\j2mewtk\2.5.2\appdb\MediaControlSkin
    Running with locale: Swedish_Sweden.1252
    Running in the identified_third_party security domain
    java.lang.NullPointerException
         at javax.microedition.lcdui.Item.addCommandImpl(+11)
         at javax.microedition.lcdui.StringItem.addCommandImpl(+11)
         at javax.microedition.lcdui.Item.addCommand(+11)
         at HelloMIDlet.<init>(+99)
         at java.lang.Class.runCustomCode(+0)
         at com.sun.midp.midlet.MIDletState.createMIDlet(+34)
         at com.sun.midp.midlet.Scheduler.schedule(+52)
         at com.sun.midp.main.Main.runLocalClass(+28)
         at com.sun.midp.main.Main.main(+80)
    Execution completed.
    3415817 bytecodes executed
    17 thread switches
    1667 classes in the system (including system classes)
    17760 dynamic objects allocated (533540 bytes)
    2 garbage collections (459436 bytes collected)And the applicaiton:
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    public class HelloMIDlet extends MIDlet
           implements CommandListener {
      // The exit command
      private Command exitCommand;
      // The display for this MIDlet
      private Display display;   
      // create a ticker
      private Ticker hi = new Ticker("J2ME is cool");
      public HelloMIDlet() {
        display = Display.getDisplay(this);
        exitCommand = new Command("Exit", Command.SCREEN, 2);
      public void startApp() {
        TextBox t = new TextBox("Hello MIDlet",
                    "Wireless Internet", 256, 0);
        t.addCommand(exitCommand);
        t.setCommandListener(this);
        t.setTicker(hi); // set the ticker
        display.setCurrent(t);
      public void pauseApp() { }
      public void destroyApp(boolean unconditional) { }
      public void commandAction(Command c, Displayable s) {
        if (c == exitCommand) {
          destroyApp(false);
          notifyDestroyed();
    }I did try to remove as much code as possible still being able to compile it. Exactly the same type of error was presented still...
    I have another MIDlet in the same projects that works fine.
    What is the problem?
    Thank you in advance!
    Best Regards,
    Niklas

    java.lang.NullPointerException
         at HelloMIDlet.<init>(+99)
    ...Try to modify your code about as follows:
      private Ticker hi;  // initialize ticker in startApp
    /* don't override the MIDlet constructor
      public HelloMIDlet() {
      public void startApp() {
        // initialize all MIDP UI stuff in startApp
        hi = new Ticker("J2ME is cool");
        display = Display.getDisplay(this);
        exitCommand = new Command("Exit", Command.SCREEN, 2);
        TextBox t = new TextBox("Hello MIDlet",
                    "Wireless Internet", 256, 0);
        t.addCommand(exitCommand);
        t.setCommandListener(this);
        t.setTicker(hi); // set the ticker
        display.setCurrent(t);
    //...The problem might be caused by initializing MIDP UI stuff prior to entering startApp method. I also think that overriding MIDlet constructor is not quite a good idea. Check [MIDP tutorials (Google search shows plenty)|http://www.google.com/search?q=MIDP+tutorials] if you're interested to know more details on that.

  • 2 Problems Form Wont Run Without DataBlock / “FRM-40405”

    Using Oracle8i, Form6i & Report 6i.
    Requirement
    1.     How to run form with out DataBock
    2.     Avoid rising of Error “FRM-40405 No Change to Apply”
    Problem Details
    Developed an index / welcome form with link of all other reports & forms.
    But this form won’t open unless I include (a DataBlock or dataitems in a non-DatabaseBlock).
    If I include a DataBlock it give following error:-
    “FRM-40405 No Change to Apply” when ever I open linked forms/reports and when ever I enter new record in link forms.
    This error won’t stop/corrupt any process but rise on every above instance.
    Wishes
    Jawad

    You should be able to run a form without a base table block. You do need an item (can be a non base table item) to which the cursor can navigate. This can be a text item, button, etc. If you don't want the item to show on the form, make it a very small size (height and width both equal to 1).

  • Arcitecture Problem - Can't Run Code

    I have problems with my programs arcitecture and am getting errors. What am I missing?
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    public class EncryptText extends JFrame
    private JPanel upper, middle, lower;
    private JTextArea text, output;
    private JButton encrypt, clear, about;
    public EncryptText( String titleText )
    // call superclass constructor
    super( titleText );
    addWindowListener( new WindowAdapter()
    public void windowClosing( WindowEvent e )
    e.getWindow().dispose();
    System.exit( 0 );
    ActionListener actionListener = new ActionListener()
              public void actionPerformed(ActionEvent actionEvent)
    // create panel, set panel border, add textfield
    upper = new JPanel();
    upper.setBorder( BorderFactory.createTitledBorder( "Input" ) );
    upper.setLayout( new BorderLayout() );
    text = new JTextArea( "Text to test",4,22 );
    upper.add( text, BorderLayout.CENTER );
    JScrollPane scroll = new JScrollPane(text,
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    upper.add(scroll);
    // create panel, set panel border, add buttons
    middle = new JPanel();
    middle.setBorder( BorderFactory.createTitledBorder( "Buttons" ) );
    middle.setLayout( new FlowLayout( FlowLayout.CENTER ) );
    encrypt = new JButton( "Encrypt");
    encrypt.addActionListener(actionListener);
    middle.add( encrypt );
    clear = new JButton( "Clear");
    clear.addActionListener( actionListener );
    middle.add( clear );
    about = new JButton( "About");
    about.addActionListener( actionListener );
    middle.add( about );
    // create panel, set panel layout manager, create checkbox listener
    lower = new JPanel();
    lower.setBorder( BorderFactory.createTitledBorder( "Output" ) );
    lower.setLayout( new BorderLayout() );
    output = new JTextArea( "altered input Text",4,22 );
    lower.add( output, BorderLayout.CENTER );
    JScrollPane scroll2 = new JScrollPane(output,
    JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
    JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    lower.add(scroll2);
    //lower.setLayout( new FlowLayout( FlowLayout.RIGHT ) );
    // add panels to the frame
    Container cp = getContentPane();
    cp.add( upper, BorderLayout.NORTH );
    cp.add( middle, BorderLayout.CENTER );
    cp.add( lower, BorderLayout.SOUTH );
    // pack the frame and make it visible
    pack();
    setVisible( true );
    public MenuBar buildMenuBar()
    MenuBar menuBar = new MenuBar();
    Menu fileMenu = new Menu( "File" );
    Menu editMenu = new Menu( "Coding" );
    Menu editMenu = new Menu( "Help" );
    MenuItem exitItem = new MenuItem( "Exit" );
    MenuItem clearItem = new MenuItem( "Clear" );
    MenuItem encryptItem = new MenuItem( "Encrypt" );
    MenuItem aboutItem = new MenuItem( "About" );
    exitItem.addActionListener(new ActionListener()
    public void actionPerformed( ActionEvent event )
    dispose();
    System.exit( 0 );
    clearItem.addActionListener(new ActionListener()
    public void actionPerformed( ActionEvent event )
    set.text.this(" ");
    set.output.this(" ");
    encryptItem.addActionListener(new ActionListener()
              EncrptEncoding encode = new EncrptEncoding ();
    aboutItem.addActionListener(new ActionListener()
    public void actionPerformed( ActionEvent event )
    public class EncrptEncoding
    //create our i/o objects
    static BufferedReader keyboard=new BufferedReader(new InputStreamReader(System.in));
    static PrintWriter screen=new PrintWriter(System.out,true);
    public EncrptEncoding(String string)
         String string = (text.getText());
         StringBuffer inputNew = new StringBuffer();
         int length = string.length();
         int i=0;
         int j=0;
         int jcount=0;
         while (i<length)
              inputNew.insert(j, string.charAt(i));
              inputNew.insert(int randomInt = 92 + (int)(Math.random() * 118);
              i++;
         return output;
    /** The test method for the class
    * @param args not used
    public static void main( String[] args ) throws IOException
    new EncryptText( "Three Panels Sample" );
    /*Errors
    G:\Lab 2\Test\ThreePanels3.java:119: not a statement
    set.text.this(" ");
    ^
    G:\Lab 2\Test\ThreePanels3.java:119: ';' expected
    set.text.this(" ");
    ^
    G:\Lab 2\Test\ThreePanels3.java:120: not a statement
    set.output.this(" ");
    ^
    G:\Lab 2\Test\ThreePanels3.java:120: ';' expected
    set.output.this(" ");
    ^
    G:\Lab 2\Test\ThreePanels3.java:156: '.class' expected
              inputNew.insert(int randomInt = 92 + (int)(Math.random() * 118);
    ^
    G:\Lab 2\Test\ThreePanels3.java:156: ')' expected
              inputNew.insert(int randomInt = 92 + (int)(Math.random() * 118);
    ^
    6 errors
    Tool completed with exit code 1*/

    Architecture?
    I think some of the problem may be that you're making up things like set.text.this(" "). Rather than pick through this fixing the errors, your best bet is to re-visit a basic tutorial and start again

  • Leopard, can it run without core image?

    well i got an ibook g4 from my friend and i bought leopard disk new from ebay it was boxed and all well anyways i want to install leopard on my ibook which is running 10.4.11
    the specs are
    1.7 ghz
    786 ram
    60 gb hard drive
    my question is that i think that the ibook doesnt support Core image, can i install it on the ibook cuz im thinking of doing a clean install since its neww any thoughts??

    Requirements for OS X 10.5
    http://support.apple.com/kb/HT3759?viewlocale=en_US

  • Downloading changes setu.exe to setup.exe.part-can't run the file

    Any time I download a setup.exe file the file extension is changed to setup.exe.part. The executable won't run to do the install. I've tried the same executable downloads with other browsers and it works fine. Suddenly Firefox seems to be altering the file I'm downloading.
    1. I use the Download Manager and download to the Desktop (as I have chosen in "Tools".
    2. I always save the file since the "Run" button is not available when starting the download.
    3. The file for some reason now always saves as xxxx.setup.exe.part
    4. The executable will not open and I always get an error dialog that offers me a search on the web to try to open the file.
    Please help.
    Thanks

    Hello Alen,
    -Please confirm that you've insatlled SQL SP3A or higher
    -It seems like it is looking for file in:
    C:/SAP/DVDs/EXPORT/EXP1/DATA/ directory. Please check that the path is okay.
    -in what phase this error happens ?
    Regards,
    Dimitry Haritonov

  • How do I put JPEGs in a burn folder without having them be aliases? I see the JPEGs in "Preview" but can't fugre out how to duplicate the originals so I can burn them without them being aliases.

    How do I copy JPEGs that I see in "Preview" without getting aliases? I want to burn a new disk with copied originals, not aliases?

    You can create a new folder and drag the originals into it and burn that as well, the "burn folder" concept just makes it easier to not to have to put everything away later.
    Just delete the burn folder and your done.

Maybe you are looking for

  • How can I make a transparent square box swf file in flash cs4?

    Hi, I have one picture imported into flash cs4 and would like to make a rectangle box which should be transparent. Finally I will save it as .swf file for later use. But the box should be transparent (without any background). How can I do that? Pleas

  • How do I answer a large file (video) from my ipad to another ipad

    I'm have to send a large video to my my friend as a homework assignment but I'm not sure how, she also has an iPad and neither of us have a computer to upload files to. Also a little extra we need to merge two videos together

  • Exteme slow commits

    Hi, I am experiencing problems recently with Oracle XE running on server 2003. In my code (java) auto commit is set to false and I do explicit commit in the code. However, in last couple of days, I started noticing big delay between insert and actual

  • Internal and external

    hello sap Gurus, Iam new to sap, can any bady tell me the what is the difference between internal and external number ranges. Regards vijay

  • Upgraded to Lion and many applications now won't work

    I upgraded to 10.7.4 and started having some problems.  I didn't notice it right away.  Recently I tried to open a document with Pages '08 and received a crash notification.  I tried it again and the same result.  Same result with Garage Band, iMovie