Error in my javac?

my problem:
(1) i downloaded a java-applet. when i open the included html-file at any place on my drive, the applet starts and works. the same in the javaviewer.
(2) i compile the included "<filename>.java" with "javac" to "<filename>.class" and the applet works perfectly (open in MS InternetExplorer,...).
now the important part:
i put the applets into my apache-htdocs, the webserver main directory. now i access the html-file that includes the applet (1) - everything works great...
but when i open the file linked to the applet (2) there is a grey field and a error-display in the status-bar: "class <filename> not found".
i figured out, that there is no problem with my webserver...so the problem is based on a error in the compile process. maybe i have to include some other classes? jar-files? ...?
ps: this problem occurs not only with that downloaded applet. not even the simpliest "hello world" works "online" (but it works "offline") !!??
i think the answer is quite easy, but i simply got no clue...please help me!!!
Thanx.

sorry. i think this problem was "solved" already...
--> http://forum.java.sun.com/thread.jsp?forum=54&thread=137108
or is there any other solution?

Similar Messages

  • Compilation process error : null/bin/javac: not found

    Hi experts,
    I am getting following error in IR.
    Compilation process error : null/bin/javac: not found
    Can anybody plaese help what is cause for this error.
    Kind Regards,
    Praveen

    Hi Praveen
    Specify the jstartup/vm/home parameter in the instance profile to be directed at the correct JAVA_HOME.
    Furthermore, act by SAP Note 718901.
    Also test ur mapping using this blog
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Regards,
    Prateek

  • Error importing with javac

    I am trying to compile code which was last compiled under JDK 1.2 (!). The code consistst of 2 packages - one is dependent upon the other.
    The low-level package (aka Utils) builds without error. However, the other lib generates an error when it reaches an import statement of the 1st package. See below:
    C:\GUITools>javac -cp .;C:\Utils *.java
    CalendarTable.java:8: package Utils does not exist
    import Utils.*;
    For kicks, I placed the Utils.jar file into the GUITools directory. The Utils package was still not found.
    I have set CLASSPATH is include both directiores in question. This code used to complie and run. So the question is: is my environment configured incorrectly? Or are there new requirements imposed by ver 1.5 of javac.exe?

    1) the Utils.jar file is boguspossible
    2) the -cp switch is being ignorednot really
    3) the C:\Utils directory is not being found or
    resolvedAre the classes in the Utils package located in c:\Utils\Utils\*.class? Or should that be C:\Utils\*.class? in which case the classpath element should be C:\ not C:\Utils. And maybe C:\Utils\Utils.jar doesn't work because it has the same error? it should contain Utils\*.class, not just *.class.
    4) the differences between JDK 1.2 (when it compiled)
    and 1.5 (it doesn't compile) require source code
    changes I am unaware of. Is that possible?not really.

  • Compiling error (netbeans and javac)

    Hi,
    I have created a project with netbeans. It has two files Main.java and Methods.java. I can compile and run it using netbeans without any errors. But if I go to the directory where that files are located and try "javac Main.java", I get the error like this:
    Main.java:26: cannot find symbol
    symbol : class Methods
    location : class projectname.Main
    Methods met = new Methods();
    I get this error 2 times.

    cd ..
    javac projectname/Main.java

  • Error in running javac

    Hi guys,
    Im having the problem as shown below whenever I run javac.
    JAVAC caused an exception e06d7363H in module MSVCRT.DLL at 0167:7800adef.
    Registers:
    EAX=0063e7b0 CS=0167 EIP=7800adef EFLGS=00000206
    EBX=ff02000f SS=016f ESP=0063e794 EBP=0063e7bc
    ECX=00000000 DS=016f ESI=78033e80 FS=6bc7
    EDX=00000001 ES=016f EDI=0063e7bc GS=0000
    Bytes at CS:EIP:
    5f 5e c9 c2 08 00 55 8b ec 51 53 56 57 8b 45 0c
    Stack dump:
    0000000f 05500044 e06d7363 00000001 00000000 00000000 00000003 19930520 0063e7d4 503f0cf0 ff01ffff 503b2ce2 0063e7d4 503f0cf0 503f279c 00000001
    Im currently using windows 98, and jdk1.2 .
    Kindly advice me on this matter.
    thanks

    See whether this link help u
    http://www.tech-forums.net/showthread.php?s=&threadid=719

  • Are javac error messages documented with comprehensive explanations

    Hi all:
    Are the error messages which javac produces documented?
    Can anyone recommend a source which explains exactly what the message is trying to tell the beginner?
    Often the meaning of the message is clear. But frequently one looks at the message and wonders exactly what the compiler is trying to tell you and how to go about fixing it.
    By the way, I am using JDK 1.3.1. I did try searching the forum because I am sure this question has been asked but I couldn't phrase the query so that it gave a reasonable number of items to look at.
    Thanks all
    Bill

    One good tutorial on the meaning of the the various common javac error messages can be found here: http://mindprod.com/errormessages.html
    Roedy's stuff is usually quite accurate and reasonably up to date. You might also want to peek around the rest of his Java Glossary - it's got a lot of great info.
    Chuck

  • Problem with JDK 6 update 5 - Error Message says cant find java compiler

    Hi i am a complete beginner to programming and i am having trouble with the latest java development kit. jdk 6 update 5.
    The problem is i have set the path and the program cant find my compiler.
    I have installed the latest java development kit 6 update 5 on my windows xp machine.
    I have created a simple program as shown below:
    class Hello
         public static void main(String[] args)
                   System.out.println("Hello from java");
    saved the file to my desktop as Hello.java
    I have set the path variable like so:
    Go to control panel then click system icon then click advanced tab then click environmental variables.
    Now in system variables the path is shown as this - %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
    I then add this to the end;C:\Program Files\Java\jdk1.6.0_05\bin
    This is the location to the things like compiler, applet viewer etc.
    No in the command prompt i type javac Hello.java and i get this error message:
    C:\> javac Hello.java
    javac: file not found: Hello.java
    Usage: javac <options> <source files>
    use -help for a list of possible options
    The jdk is installed properly im sure but it can find my compiler.
    What mistake have i made in setting the path because im guessing that is related to the problem?
    Could someone out there please help me?
    Thank You
    Rafeeq

    saved the file to my desktop as Hello.java
    C:\> javac Hello.javaC:\ is not the desktop!
    The jdk is installed properly im sure but it can find my compiler.Of course it can! It just can't find the file you are trying to compile, because that's not in the root directory.
    I suggest you make a directory C:\java and save your source file there rather than on the desktop. In the command prompt, enter cd \java to make it the current working directory and then enter javac Hello.java.
    @Pravin: The question is about compiling, not running. CLASSPATH has nothing to do with this problem.
    db

  • Error while deploying when working with web service

    Hi friends,
    I am working with web service. When i try to run the build.xml, I'm receiving an error as follows:
    *[javac] D:\MyWorkspace\MyProjectWeb\Javasource\aaa\bbb\ccc\ws\endpoint\ListenerServiceEndpoint.java:27: package org.springframework.ws.server.endpoint does not exist
    [javac] import org.springframework.ws.server.endpoint.AbstractDomPayloadEndpoint;
    [javac] ^ *
    Could anyone please help me in getting this solved??
    Thanks in Advance,
    Robis

    Pretty self-explanatory - the Spring framework jars are missing from the classpath used in compilation.
    If you don't have them, get them from www.springframework.org.

  • Error in renaming file

    This is the code to create a file and rename it..
    import java.io.*;
    class renamefile2
    public static void main(String[] args) throws IOException
    File file = new File("saranya");
    boolean success = file.createNewFile();
    if (success)
    {System.out.println("file created");}
    else
    {System.out.println("file exists");}
    boolean done = file.renameTo("naanee") ;
    if (done)
    {System.out.println("renamed successfully") ; }
    else
    {System.out.println("not renamed successfully") ; }
    Im getting the error:::
    C:\mywork>javac renamefile2.java
    renamefile2.java:12: renameTo(java.io.File) in java.io.File cannot be applied to
    (java.lang.String)
    boolean done = file.renameTo("naanee") ;
    ^
    Please help me solve !!

    You can get the API documentation at :
    http://www.google.com/search?l=en&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=Calendar+API+in+java&spell=1
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html
    You have to do something like :
    Calendar c = Calendar.getInstance();
    int day = c.get(Calendar.DAY);
    int month = c.get(Calendar.MONTH);
    int year = c.get(Calendar.YEAR);
    String date = day+" / "month" / "+year;

  • Class with objects compile error in Java 1.5.0 and 1.4.2.05

    Hi, I have some problems with creating objects to my java program.
    See below:
    JAVA, creating new class object.
    class AccountTest {
         public static void main(String[]args) {
         Account olesAccount = new Account(123456676756L, "Ole Olsen", 2300.50);
         olesAccount.deposit(1000.0); //Input of 1000$ to account
         double balance = olesAccount.findBalance(); //Ask object about balance!
         System.out.println("Balance: " +balance);
    ERRORS, from compiler (javac):
    AccountTest.java:7: cannot find symbol
    symbol : class Account
    location: class AccountTest
    Account olesAccount = new Account(123456676756L, "Ole Olsen", 2300.50);
    ^
    AccountTest.java:7: cannot find symbol
    symbol : class Account
    location: class AccountTest
    Account olesAccount = new Account(123456676756L, "Ole Olsen", 2300.50);
    ^
    2 errors
    This error occurs with both java 1.5.0 RC and 1.4.2.05
    */

    Assuming you haven't forgotten to compile the Account class, tt seems to be a problem with visibility. Are you sure your classpath is set up correctly and that the class Account is visible to the AccountTest driver?
    I'd try moving the Account out of whatever package it's in right now and making it public. Then, restrict acces from there.

  • Error in compare date

    hi to all
    i created a java program for validateing two date
    start date should be less than end date
    end date should be greater than start date
    and here is my code
    <code>
    package src;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
         class compareDates
    //          Compare two dates
    public static boolean compareDates(Date dDateA, Date dDateB)
    // Declare variables
    GregorianCalendar cDateA = new GregorianCalendar();
    GregorianCalendar cDateB = new GregorianCalendar();
    // Set dates
    cDateA.setTime(dDateA);
    cDateB.setTime(dDateB);
    // Compare
    if (cDateA.get(Calendar.MONTH) == cDateB.get(Calendar.MONTH) && cDateA.get(Calendar.YEAR) == cDateB.get(Calendar.YEAR) && cDateA.get(Calendar.DAY_OF_MONTH) == cDateB.get(Calendar.DAY_OF_MONTH))
         System.out.println("Thanks");
    System.out.println("Enter correct Date");
                        return false;
         //Main     
         class compare
         public static void main(String args[])
              BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
              System.out.println("Enter Start Date ");
         String dDateA=br.readLine();
         System.out.println("Enter End Date ");
         String dDateB= br.readLine();
              compareDates cd= new compareDates();
              Date ddateA;
              cd.compareDates(ddateA,dDateB);
    </code>
    and i am getting error in this line
    cd.compareDates(ddateA,dDateB);
    if any one knows plz help me

    this is my error in console
    javac compare.javacompares.java:46: compareDates(java.util.Date,java.util.Date) in compareDates cannot be applied to (java.lang.String,java.lang.String)
    cd.compareDates(dDateA,dDateB);
    suggection
    in passing arguments i am passing date, but in main i am calling date as string
    if u know how to rectify it plz tel me
    tel me friends

  • Javac not found in cygwin

    Hi,
    I'm relatively new to Java. I've been using NetBeans to run my programs. I'm having trouble running java applications from cygwin. When I type:
    javac Main.java
    in the directory containing my source files, I get the following error message:
    bash: javac: command not found
    I don't understand this because I have javac installed in
    C:\Program Files\Java\jdk1.5.0_07\bin
    Could it be because I'm one of several users on this machine and need to have Java installed on my personal account?
    Thanks,
    Malcolm

    You need to add C:\Program Files\Java\jdk1.5.0_07\bin
    to your PATH environment variable, which is best done
    in your .bashrc file.Completely personal prefrence I know, but I'd do it in the System control panel.
    It will only piss you off when you use Window Shell, and javac is not in the PATH.
    Screen shot HOWTO

  • Classpath error: packages using packages

    I'm getting an error while doing:
    javac -classpath x.y.z x\y\z\*.java
    ---error message:
    .\x\y\z\SubQueryHelper.java:159: cannot resolve symbol
    symbol : variable ConvertSQL
    location: class x.y.z.SubQueryHelper
    java.sql.ResultSet resultSet = ConvertSQL.getResultSet(myTabResults);
    ^
    ---my classpath:
    CLASSPATH=C:\;C:\WINNT;C:\WINNT\SYSTEM32;C:\j2sdk1.4.1_03;C;\j2sdk1.4.1_03;C:\j2sdk1.4.1_03\bin;C:\a\b\c;C:\a\b\c\easj2ee.jar;C:\a\b\c\x\y\z
    I think I have the right dirs in the classpath, but I think I need to access other packages:
    x\y\z uses x\y\a and x\y\b
    Do I need to specify the other packages or does java look for them automatically? What am I missing?

    Thanks limeybrit9 and jschell for the replies.
    Thanks to both of you, I determined:
    1. my classpath was okay
    1b. I didn't need the C:\a\b\c\x\y\z (just C:\a\b\c).
    1c. I could just use javac myFile.java (no -classpath)
    Then I decided to look at import statements and make sure they were okay. Took a working package, added all import statements and got the same errors so the current import statements worked.
    "When you have eliminated the impossible whatever remains, however improbable , must be the truth" -S.H.
    Therefore;
    'cannot resolve symbol' because I cut and pasted from another class and those variables weren't defined in the new class.

  • Error message in an odd location

    I have this code snippet:
    URL urlShoppingCartPage = new URL("http://www.example.com/cgi-bin/...");
    URLConnection URLConn_ShoppingCartPage = new urlShoppingCartPage.openConnection(); // line 138
    // more code...
    InputStream is_ShoppingCartPage = new URLConn_ShoppingCartPage.getInputStream(); // line 167
    I get this error message:
    C:\>javac FormPOST_Henrys.java
    FormPOST_Henrys.java:138: package urlShoppingCartPage does not exist
    URLConnection URLConn_ShoppingCartPage = new urlShoppingCartPage.openCon
    nection();
    ^
    FormPOST_Henrys.java:167: package URLConn_ShoppingCartPage does not exist
    InputStream is_ShoppingCartPage = new URLConn_ShoppingCartPage.getInputS
    tream();
    ^
    2 errors
    C:\>
    the program successfully compiles using URLConnection object and InputStream object further towards the top of the code file. Why does it not compile now?

    The object is already created (new URL(...)) where it was declared, so remove the two other references to 'new'.
    If you have trouble implementing that advice, try posting an SSCCE. It should take no more than a dozen lines of code to reproduce the errors.
    Also, please use the code tags when posting code or code snippets. To do that, select the code and click the CODE button on the message input form.

  • What is needed to get javac compiler?

    I down loaded and installed jdk-6u6-windows-i586-p.exe. This runs files fine if the compiled .class files are there. When I create a nes .java file and try to compile it using javac, I get errors not recognizing javac command. What do I need to be able to get javac? JRE?
    Thanks in advance
    A rookie.

    Punch your error into Google. This is asked a lot and you should get a gazillion hits. At least one will solve your problem.

Maybe you are looking for

  • How to use FormsGraph in my  forms

    Hello everybody, I want to use FormsGraph in my forms. Demo works fine but when I create a bean area in my form, bean area is empty and get some error messages in the java console (1.3.1.13): Loading http://localhost:8888/forms90/java/f90all_jinit.ja

  • How to remove existing keywords during import?

    I have tried to find a way to NOT import existing keywords present in files that are already on my system, when I am importing those files into my library. They mess up my existing keyword structure and I just want to ignore them during import. I tri

  • Reference Object Screen For Vehicle in Maintenance Order

    SAP Gurus, How could I display the reference object screen for vehicle specific data (O150) in my Maintenance Order. I have been able to display it in Maintenance Notification but how could the fields plate number etc defined in reference object scre

  • Is any one else having scrolling issues when a tab has a pdf open but isn't the current tab?

    I have a PDF open in a tab. When I go to a different tab and try to scroll (using the mouse scrolling feature, not clicking the scroll bar) the mouse icon says it is scrolling, but it isn't. I then go to the tab with the pdf and realize that the scro

  • No go icon

    My MacBook Pro seems to be dying. running snow leopard, sometimes it boots correctly but then hangs after a few minutes of use (spinning rainbow).  when I reboot, it shows the apple and spins a while and then shows a "no go" icon (circle with diagona