Installation Problem - Java SDK 1.4.1

I have a problem with installing Java on my machine at home that you may be able to help me with.
Here are the Details: 1) I installed the most recent java SDK on my machine. 2) I set the Autoexec file with the correct PATH statement. 3) Set the correct CLASSPATH statement 4) The "Java -Version" statement gives the correct reply that it is version 1.4.
Below is my AutoExec.bat file
SET windir=C:\WINDOWS
SET winbootdir=C:\WINDOWS
SET COMSPEC=C:\WINDOWS\COMMAND.COM
SET PATH=C:\PROGRA~1\MICROS~3\OFFICE;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ATF
SET CLASSPATH=C:\J2SDK1_4\LIB\TOOLS.JAR;.;
SET PROMPT=$p$g
SET TEMP=C:\WINDOWS\TEMP
SET TMP=C:\WINDOWS\TEMP
Problem: Trying to compile a simple "HelloWorld" Program with "javac Helloworld.java" produces the error "Bad Command or File name".
Issues: Command Line in Windows ME requires 8.3 format. Inserts tilde "~" and a number into the names of the files. even using a short name such as "HelWrld.java" inserts a tilde because of the "java" extension. Have tried using a "jav" extension but that does not work as the error is the same.
Question: How can I get rid of the "Bad Command or File Name"?

My First Java Progam (for Windows with Java 2 SDK v1.4.1)
Follow these instructions EXACTLY.
1. Download and install the Java 2 SDK, Standard Edition. You can find it here:
http://java.sun.com/j2se/downloads.html
Select the download for your operating system and be sure to download the SDK (rightmost column) and not the JRE. (The JRE is only the Java Runtime Environment, which does not include the Java compiler and other tools needed for software development).
2. Read the README and installation instructions! Read these instead of asking questions about installation etc. in the Java forums.
README for Java 2 SDK v1.4.1: http://java.sun.com/j2se/1.4.1/README.html
Java 2 SDK v1.4.1 for Windows installation: http://java.sun.com/j2se/1.4.1/install-windows.html
Things to note:
- After installing, add the bin directory of the SDK to your PATH environment variable. For example, if you installed the SDK in C:\j2sdk1.4.1_01, add the directory C:\j2sdk1.4.1_01\bin to your PATH. (If you don't know what an environment variable is and how to set it, read the documentation of Windows; if you're using Windows XP, this might be useful: http://support.microsoft.com/default.aspx?scid=KB;EN-US;q310519& ).
3. Open Notepad and type in your first program:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
Save this program somewhere with the filename "HelloWorld.java".
Things to note:
- The case of text is important. Don't type "Helloworld", "helloworld" or anything else. Also the case of the filename is important (even though Windows has case-insensive filenames!).
- Watch out that Notepad doesn't append ".txt" to the filename. The file should be named "HelloWorld.java", not "HelloWorld.java.txt".
4. Open a command prompt and go to the directory that contains the file "HelloWorld.java" (with the CD command).
5. Compile the progam with the following command:
javac HelloWorld.java
Things to note:
- If you get something like "Unknown command: javac" or "Bad command or filename", you did not (correctly) add the bin directory of the SDK to the PATH (see step 2).
6. Run the program. If you didn't get any compile errors, you now have a new file "HelloWorld.class" in the same directory. Run the program with the following command:
java HelloWorld
Things to note:
- If you get: "Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class", you have typed "java HelloWorld.class". Leave off the ".class" at the end. You are typing a class name here, not a filename.
- If you get something like: "Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong name: HelloWorld)", you have typed the class name wrong. Note that the case is important (i.e., don't type "helloworld" but "HelloWorld")!
- You don't need to set any classpath here. In Java 1.4, the current directory is included in the classpath automatically. For older versions of Java, you may need to add the current directory (".") to the classpath, like this:
java -classpath . HelloWorld
7. Congratulations with your first working Java program. Now follow these links:
Java Tutorial
http://java.sun.com/docs/books/tutorial/
New to Java Programming Center
http://developer.java.sun.com/developer/onlineTraining/new2java/
FAQ
http://java.sun.com/products/jdk/faq.html
How Classes are Found
http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html
Setting the class path
http://java.sun.com/j2se/1.4/docs/tooldocs/win32/classpath.html
JavaTM 2 SDK Tools and Utilities
http://java.sun.com/j2se/1.4/docs/tooldocs/tools.html
Jesper

Similar Messages

  • Installation problem: "Java Security Configuration Asistant" failed

    Hello, does anybody can help for the following installation problem of Oracle Enterprise Manager 10g:
    During installation, when I come to the step "Configuration Asistants", the "Java Security Configuration Asistant" can not pass, it always failed even after retry. Pls help!!!

    I'm having the same problem installing on W2K, what I discovered is that it's unable to start listener, I hat to start it manually but it still won't end tihs task.
    I also have a 9i Client / Manager software installed in a 9i Home which disapeared from home selector.
    If I try to deinstall OEM10G it'll just get to a 2% advance and stop...
    ...is this a BETA?

  • Installation problem: Java Chartbuilder for Solaris

    Hi all,
    I have downloaded Oracle Java Chart Builder for Solaris. It's a jar file in 3.8 M size. According to the documentation, I think I suppose to extract it, so I use this command to extract it:
    $jar xvf chartbuilder_kit.jar
    This will just give me a META-INF folder which contains a MANIFEST.MF file. Other than that I get nothing much. I have tried the NT version of it( a zip file) and after I unzip it I suppose get a set of folder which included a lib, doc, demos, bin and Meta-inf.
    Please advise, is it because of I use a wrong way in extracting the jar file????????
    Thanks for reading.....
    null

    I'm having the same problem installing on W2K, what I discovered is that it's unable to start listener, I hat to start it manually but it still won't end tihs task.
    I also have a 9i Client / Manager software installed in a 9i Home which disapeared from home selector.
    If I try to deinstall OEM10G it'll just get to a 2% advance and stop...
    ...is this a BETA?

  • Installation Problem - java.lang.NoClassDefFoundError

    I'm new to java and have read a lot of posts in this forum but don't see an a solution to my problem. I have win 98.
    I have downloaded and installed J2SE (j2re -1_4_1_02)but when I compile my code, I get
    C:\>javac jabberwock.java
    Bad command or file name
    C:\>java jabberwock
    Exception in thread "main" java.lang.NoClassDefFoundError: jabberwock
    I have set the path to c:\j2se\bin - where I have installed.
    PLease advise what am I doing wrong.
    Thankx - need desparate help.

    First off... make absolutly sure your path has "C:\java\bin" in it.
    to do this typepath=%path%;c:\java\binat the command prompt window. this is a temporary fix... you have win98, so you can put the above line in your "C:\AUTOEXEC.BAT" file just below the other "path=" settings if there are any... if not, the first line is fine.
    Secondly, it sounds like you have a "classpath=" environment variable set that doesn't reflect your current ".class" file path. Easiest approach, un set it. at the command prompt type:
    set classpath=Note:
    typing "set" alone will show a list of your environment strings.
    typing "set envstr" will show the setting for whatever "envstr" you specify... eg: set classpathwill show you the "classpath" environment string.
    do all this from one command prompt window, and use the same window to change to the directory containing your program... "jaberwock.java" now try to compile it. Good luck, Let me know how it goes...

  • How to uninstall Java SDK 1.5.0_14

    Dear,
    I just installed a brand new Solaris 10 and latest patch cluster.
    Default on my system are the following 2 folders under /usr/jdk:
    j2sdk1.4.2_11 and jdk1.5.0_06
    I installed the Java SDK 1.5.0_14, but in the wrong destination folder.
    When I check my Java version with "Java -version"
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
    Why I don't have the latest one, the SDK 1.5.0_14 ?
    My question: I want a proper situation with only the Java SDK 1.5.0_14 installed.
    How do I remove Java SDK 1.5.0_14.
    How do I remove Java SDK 1.5.0_6
    Do I have to remove the 1.4.2_11 ?
    Thx guys...

    Thx for your answer...
    I want to have the installation of Java SDK 1.5.0_14 in a different location ?
    Can I just move the folder ?
    But I guess it's better to do uninstall and re-install it ?
    Right ?
    Thx in advance guys... (I'm not yet worked in in this stuff...)

  • How to Uninstall Java SDK Eval Package?

    First, some background info: I am not a Java programmer, but I need to have the Java SDK v1.4.1 (or later) installed on my Solaris 8 Sparc platform in order to be able to run some 3rd-party web-based database software tools.
    I accidentally installed the 'evaluation' Enterprise version of the Java SDK v1.4.1. I did not uninstall the underlying 1.2.1_04 JDK, so that still shows up when I run the "java -version" command, probably because I did not use the 'pkgadd' utility to add the eval SDK. Now I want to erase the evalware, but I'm afraid I might clobber something else in the process. How do I go about uninstalling the eval SDK?

    Thx for your answer...
    I want to have the installation of Java SDK 1.5.0_14 in a different location ?
    Can I just move the folder ?
    But I guess it's better to do uninstall and re-install it ?
    Right ?
    Thx in advance guys... (I'm not yet worked in in this stuff...)

  • Java ME SDK 8.0 EA Netbeans plugin installation problem

    We have been getting reports that some developer had trouble installing the Java ME SDK 8 EA plugins into NetBeans. We are working on fixing the issue, in the meantime please try the workaround posted in the Java ME SDK forum:
    Java ME SDK 8.0 EA Netbeans plugin installation problem
    Also be sure to check the latest ME SDK 8 EA Release Notes for late-braking information:
    http://docs.oracle.com/javame/dev-tools/jme-sdk-8/release-notes/html/Release_Notes/Release_Notes.html
    Sorry for the inconvenience.
    Best,
    -- Terrence

    Hi,
    For the Raspberry Pi, tooling over serial port is not supported. The simplest solution is to use standard IP networking over Ethernet. This can be a direct connection between the PC and the Raspberry Pi, as long as the cable is twisted and the IP addressing is correct (e.g. manual IP addressing or DHCP server on the PC).
    Regarding "Connecting to a UART Device": This is meant for attaching and controlling serial devices from the Raspberry Pi, not for tooling connections between the Raspberry Pi and the PC.
    Hope this helps,
    -- Terrence

  • Installation problem for Java EE 5 SDK Update 2

    Hi ,
    I have jdk1.5.0_12 (J2SE) installed on my Windows XP. Now i am trying to install J2EE on my machine.I tried to install it twice but it comes to a halt after completing 45% at the same jar file. Following is the link which shows it comes to a halt.
    http://img141.imageshack.us/my.php?image=j2eeinstallhangupav8.png
    Also I wanted to know if I uninstall the J2SE and then install only J2EE will that be fine.Because I believe J2EE is a superset of J2SE ?
    Thanks in advance.

    For the difference between Java EE and Java SE read here:
    http://java.sun.com/javaee/5/docs/firstcup/doc/p3.html
    For the installation problem, I don�t know how to help you... maybe here you can find some ideas:
    http://forum.java.sun.com/thread.jspa?threadID=738559
    Andrea

  • Problem with HowTo guide - Use the BI Java SDK in a Web Dynpro Application

    Hello,
    I am following the HowTo guide - Use the BI Java SDK in a Web Dynpro Application
    at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e49be590-0201-0010-0c83-fc20e5da124f">this link</a>.
    I have configured the connector on the WAS as needed.
    The problem is that when I run the application I receive an Unauthorized error on the connector URL.
    If I open this URL on a browser I receive a pop-up for UID and PWD and when I enter the same UID and PWD I used to configure the connector I am able to login and see the WSDL.
    Any ideas?

    I've never tried using BI in WebDynpro !!!
    But i foond one posting on the connection problem https://forums.sdn.sap.com/click.jspa?searchID=955524&messageID=2133396
    Regards,Anilkumar

  • Problems with stacked bar chart in Java SDK and CRDesigner

    Hi @ll,
    I have an issue with the rendering of stacked bar charts through the Java SDK and the CRDesigner. unfortunately, my research in this forum and with the help of aunt google didn't lead to success.
    These are my problems:
    I have a  stacked bar chart which, when datasets/stacks increase in number per bar, displays errors:
    1.)  the single stacks of the bar merge together randomly and form bigger stacks with the sum of the singles. the information of  single stacks gets lost in the bar.
    2.)  the total sum of all singles is bigger than the maximum value on the y-axis displays. thus, the scaling is wrong.
    1.) appears in the CRDesigner as well as in the Java SDK
    2.) only occurs in the Java SDK
    Is there any trick to turn the random merging of slices off?
    Is the false scaling a known issue and is there a bugfix/workaround?
    many thanks for all advice
    Tom

    hi folks,
    i found the answer to the above problems:
    when you specify the recordfields that are responsible for the change to the next stack or bar, the 'stack' fields have to be unique.
    in my case i evaluated durations in msec (as stacks) from different devices (as bars). randomly i had the same durations for one device. what happens is, that CR does not notice a change and accumulates to the first stack with the same duration.
    surprisingly this also seems to derange the axis scaling. fix the problem by simply using an overall unique recordfield like rownum or a formula that forms the current timestamp to text as identifier for the stacking.
    cheers
    .t

  • Installation Problem on RedHat 9

    I already Installed j2sdk1.4.2 cobundled with netbeans. The installation went well, after the istallation i set the path and restarted the system. I tried running java -version on the root account it executes perfectly. When i tried it on a user account its not working, the error message is like command not found. i installed Java SDK 1.4.2 on /usr/local as instructed, i thought at first i had an error on the path, but when i go directly on the ~/j2sdk1.4.2/bin directory and executed java -version again its giving me the same error message command not found. what seems to be the problem with this one? i checked theres an execute on the folder and file... HELP! thanks!

    Got it... patience is a virtue!!!
    just have to edit the .bash_profile and restart ofcourse :)

  • SOlution Manager Installation, LOAD JAVA DUMP

    Hello Guys,
    I just have had the same problem on HP-UX 11.11 with SAP-DB. Installation stuck on at LOAD JAVA DUMP.
    Solution:
    Use JAVA SDK Version 1.4.2.09 AND NOT version 1.4.2.10 !!!
    This may fix the problem rapid in our enviroment. It takes me 1.5 half day to fix it.
    Regards
    Michael Heyn

    Same problem here, but linux 32-bit with MaxDB....
    Solution Manager 4.0 SR3....
    Last entry in jload.log:
    31.10.07 13:59:50 com.sap.inst.jload.Jload dbImport
    INFO: trying to create table J2EE_CONFIGENTRY
    31.10.07 13:59:50 com.sap.inst.jload.Jload dbImport
    INFO: table J2EE_CONFIGENTRY created  
    Last Entry in IMPORT.sta:
    T:CAF_UM_RELGR_WORDS:DATA INSERT OK             30.10.07 16:03:15
    T:J2EE_CONFIG:METADATA CREATE OK                30.10.07 16:03:17
    T:J2EE_CONFIG:DATA INSERT ERR           30.10.07 16:03:17
    T:J2EE_CONFIGENTRY:METADATA CREATE OK           30.10.07 16:03:17
    Java uses 99% of the cpu since 22 hours.....
    DB is up and running....enough space....
    java version 1.4.2_10
    Any suggestions ?

  • JWSDP 2.0 Installation problem

    Hi
    I am trying to install JWSDP 2.0, but can not be successful yet.
    OS: "Windows XP SP2"
    Java SDK Version: "1.5.0_06-b05"
    D:\Setup files\Programming>java -version
    java version "1.5.0_06"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
    Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
    JAVA_HOME environment variable is set to: "C:\Program Files\Java\jdk1.5.0_06"
    Others: "Apache Tomcat 5.5.17 Server" is installed.
    "Axis 1.3" has been installed.
    When I run the executable installation file I get the following output:
    Searching for Java(tm) Virtual Machine...
    Searching for Java 1.5.X by Sun Microsystems
    Verifying Java 1.5.X by Sun Microsystems
    .........................................An unhandled error occurred -- specify
    system property "is.debug" for more information.I tried some workarounds for command line executing with parameters but they did not work either.
    e.g.
    D:\Setup files\Programming>jwsdp-2_0-windows-i586.exe -is:javahome "C:\Program Files\Java\jdk1.5.0_06"Anybody has an aswer for this problem?
    Thanks

    hello,
    i had the same problem and it is about for the language settings of windows platform (mine is xp sp2). My language was set to turkish and changed to english (usa).
    It is working well now...
    Good luck !!!

  • Java sdk location

    Running Kbuntu dapper
    When installing i did not enter the correct path to the java sdk, not when i start i get an error message,
    I have tired download a new copy but the problem still persists, does anyone know how to set the location of the java sdk. I have had a poke around in the .conf files but cant seem to find anything.
    Many thanks
    Karl Smolka

    Don't use de JDK that comes whit kubuntu. Download the selfextracting package from Sun. The install it in your home user directory.
    Delete the file .sqldeveloper from your home user directory.
    When you start sqldevelor point it to the JDK in your home directory, it'll work.
    By the way having that JDK around will help for other things, the JDK package of kubunto installs all in the distribution directories what is really right, but some aplications ask for the full JDK in one exact location. So it's better to have it around.
    FJA

  • Java sdk debian ppc

    Hello,
    Im running Debian's PPC version of its OS. The only java sdk i can find for PPC
    is blackdown sdk 1.3.1 here ... http://penguinppc.org/projects/java/
    However , I write a lot of Swing apps :( Does anyone know if ther are any other
    SDKs avaliable for Linux PPC (One that supports swing and web start)
    Thanks,
    jd

    I did have the same problem until now,
    My System is a Sun Ultra 2, with Solaris 7 and a fresh installation of J2SE 1.4.1.
    After installation, I had the following problem
    $ java -version
    Error: failed /usr/j2se/jre/lib/sparc/client/libjvm.so, because ld.so.1: java: f
    atal: relocation error: file /usr/j2se/jre/lib/sparc/client/libjvm.so: symbol __
    1cG__CrunSregister_exit_code6FpG_v_v_: referenced symbol not found
    I just realized that Sun posted Patches for Java on Solaris.
    One of the Patches solved this problem.
    Here's the URL:
    http://sunsolve.sun.com/pub-cgi/show.pl?target=patches/patch-access
    Happy patching
    --PK

Maybe you are looking for