Moved .class-files!

          Hi,
          We have a very strange problem with the Weblogic 5.1 webserver.
          We are runnung an application built with JSp and a set of our
          own java-packages.
          Frequently weblogic moves class files from our packages and
          places them under the www-root. This causes the webpages using
          these classes to crash when accessed.
          Has anyone seen this problem?
          Any suggestion on the cause?
          Best regards,
          Nils
          

We've been seeing this on and off for almost a year. We've never been able
          to figure out what causes it.
          anders
          "Nils Keife" <[email protected]> wrote in message
          news:3a113348$[email protected]..
          >
          > Hi,
          > We have a very strange problem with the Weblogic 5.1 webserver.
          > We are runnung an application built with JSp and a set of our
          > own java-packages.
          > Frequently weblogic moves class files from our packages and
          > places them under the www-root. This causes the webpages using
          > these classes to crash when accessed.
          > Has anyone seen this problem?
          > Any suggestion on the cause?
          >
          > Best regards,
          > Nils
          

Similar Messages

  • Java .class files - Moving the Main Class .class file to a new location

    Novice question....so much so that I hope it's even coherent...
    In a Java program which references many associated .class files (e.g. bicycleMain.class, bicycleSub1.class, bicycleSub2.class, etc....), do the associated .class files always have to be located in the same directory as the Main .class file?
    What I'm getting at is - If I've developed an application consisting of several .class files on my own Windows PC and I want to put the compiled application out on our Windows File Server so that anyone can execute my application, how would I go about doing this?
    Say I put the compiled .class files in H:\PROJECTS\JAVA\COMPILED\, will other people be able to execute the application from their PCs by simply issuing the command line:
    'java h:\projects\java\compiled\bicycleMain'
    Any insights would be very helpful in getting me oriented. Thanks in advance.

    Interesting...so are you saying the command line might look something like this:
    java -classpath h:\projects\java\compiled bicycleMain
    And if I want other people to be able to execute the application without specifying the -classpath option then they would need to manually update the ClassPath environment variable on their individual PCs first?

  • How do I make a batch file if the .class file uses a foreign package?

    I am trying to make an MS-DOS batch file using the bytecode file from the Java source file, called AddFields.java. This program uses the package BreezySwing; which is not standard with the JDK. I had to download it seperately. I will come back to this batch file later.
    But first, in order to prove the concept, I created a Java file called Soap.java in JCreator. It is a very simple GUI program that uses the javax.swing package; which does come with the JDK. The JDK is currently stored in the following directory: C:\Program Files\Java\jdk1.6.0_07. I have the PATH environment variable set to the 'bin' folder of the JDK. I believe that it is important that this variable stay this way because C:\Program Files\Java\jdk1.6.0_07\bin is where the file 'java.exe' and 'javac.exe' are stored. Here is my batch file so far for Soap:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java Soap
    pause
    Before I ran this file, I compiled Soap.java in my IDE and then ran it successfully. Then I moved the .class file to the directory C:\acorn. I put NOTHING ELSE in this folder. then I told the computer where to find the file 'java.exe' which I know is needed for execution of the .class file. I put the above text in Notepad and then saved it as Soap.bat onto my desktop. When I double click on it, the command prompt comes up in a little green box for a few seconds, and then the GUI opens and says "It Works!". Now that I know the concept of batch files, I tried creating another one that used the BreezySwing package.
    After I installed my JDK, I installed BreezySwing and TerminalIO which are two foreign packages that make building code much easier. I downloaded the .zip file from Lambert and Osborne called BreezySwingAndTerminalIO.zip. I extracted the files to the 'bin' folder of my JDK. Once I did this, and set the PATH environment variable to the 'bin' folder of my JDK, all BreezySwing and TerminalIO programs that I made worked. Now I wanted to make a batch file from the program AddFields.java. It is a GUI program that imports two packages, the traditional GUI javax.swing package and the foreign package BreezySwing. The user enters two numbers in two DoubleField objects and then selects one of four buttons; one for each arithmetic operation (add, subtract, multiply, or divide). Then the program displays the solution in a third DoubleField object. This program both compiles and runs successfully in JCreator. So, next I moved the .class file from the MyProjects folder that JCreator uses to C:\acorn. I put nothing else in this folder. The file Soap.class was still in there, but I did not think it would matter. Then I created the batch file:
    @echo off
    cd \acorn
    set path=C:\Program Files\Java\jdk1.6.0_07\bin
    set classpath=.
    java AddFields
    pause
    As you can see, it is exactly the same as the one for Soap. I made this file in Notepad and called it AddFields.bat. Upon double clicking on the file, I got this error message from command prompt:
    Exception in thread "main" java.lang.NoClassDefFoundError: BreezySwing/GBFrame
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    4)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    Caused by: java.lang.ClassNotFoundException: BreezySwing.GBFrame
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    ... 12 more
    Press any key to continue . . .
    I know that most of this makes no sense; but that it only means that it cannot find the class BreezySwing or GBFrame (which AddFields extends). Notice, however that it does not give an error for javax.swing. If I change the "set path..." command to anything other than the 'bin' folder of my JDK, I get this error:
    'java' is not recognized as an internal or external command,
    operable program or batch file.
    Press any key to continue . . .
    I know this means that the computer cannot find the file 'java.exe' which I believe holds all of the java.x.y.z style packages (native packages); but not BreezySwing or any other foreign packages. Remember, I do not get this error for any of the native Java packages. I decided to compare the java.x.y.z packages with BreezySwing:
    I see that all of the native packages are not actually visible in the JDK's bin folder. I think that they are all stored in one of the .exe files in there because there are no .class files in the JDK's bin folder.
    However, BreezySwing is different, there is no such file called "BreezySwing.exe"; there are just about 20 .class files all with names like "GBFrame.class", and "GBActionListener.class". As a last effort, I moved all of these .class files directly into the bin folder (they were originally in a seperate folder called BreezySwingAndTerminalIO). This did nothing; even with all of the files in the same folder as java.exe.
    So my question is: What do I need to do to get the BreezySwing package recognized on my computer? Is there possibly a download for a file called "BreezySwing.exe" somewhere that would be similar to "java.exe" and contain all of the BreezySwing packages?

    There is a lot of detail in your posts. I won't properly quote everything you put (too laborious). Instead I'll just put your words inside quotes (").
    "..there are some things about the interface that I do not like."
    Like +what?+ This is not a help desk, and I would appreciate you participating in this discussion by providing details of what it is about the 'interface' of webstart that you 'do not like'. They are probably misunderstandings on your part.
    "Some of the .jar files I made were so dangerously corrupt, that I had to restart my computer before I could delete them."
    Corrupt?! I have never once had the Java tools produce a corrupt Jar. OTOH, the 'cannot delete' problem might relate to the JRE gaining a file lock on the archive at run-time. If the file lock persisted after ending the app., it suggests that the JRE was not properly shut down. This is a bug in the code and should be fixed. Deploying as .class files will only 'hide' the problem (from casual inspection - though the Task Manager should show the orphaned 'java' process).
    "I then turned to batch files for their simple structure and portability (I managed to successfully transport a java.util containing batch file from my computer to another). This was what I did:
    - I created a folder called Task
    - Then I copied three things into this folder: 1. The file "java.exe" from my JDK. 2. The program's .class file (Count.class). and 3. The original batch file.
    - Then I moved the folder from a removable disk to the second computer's C drive (C:\Task).
    - Last, I changed the code in the batch file...:"
    That is the +funniest+ thing I've heard on the forums in the last 72 hours. You say that is easy?! Some points.
    - editing batch files is not scalable to 100+ machines, let alone 10000+.
    - The fact that Java worked on the target machine was because it was +already installed.+ Dragging the 'java.exe' onto a Windows PC which has no Java will not magically make it 'Java enabled'.
    And speaking of Java on the client machine. Webstart has in-built mechanisms to ensure that the end user has the minimum required Java version to run the app. - we can also use the [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit] on the original web page, to check for minimum Java before it puts the link to download/install the app. - if the user does not have the required Java, the script should guide them through installing it.
    Those nice features in deployJava.js are available to applets and apps. launched using webstart, but they are not available for (plain) Jar's or loose class files. So if 'ensuring the user has Java' is one of the requirements for your launch, you are barking up the wrong tree by deploying loose class files.
    Note also that if you abandon webstart, but have your app. set up to work from a Jar, the installation process would be similar to above (though it would not need a .bat file, or editing it). This basic strategy is one way that I provide [Appleteer (as a downloadable ZIP archive)|http://pscode.org/appleteer/#download]. Though I side-step your part 1 by putting the stuff into a Jar with the path Appleteer/ - when the user expands the ZIP, the parts of the app. are already in the Appleteer directory.
    Appleteer is also provided as a webstart launched application (and as an applet). Either of those are 'easier' to use than the downloadable ZIP, but I thought I would provide it in case the end user wants to save it to disk and transport the app. to a machine with no internet connection, but with Java (why they would be testing applets on a PC with no internet connection, I am not sure - but the option is there).
    "I know that .jar and .exe files are out because I always get errors and I do not like their interfaces. "
    What on earth are you talking about? Once the app. is on-screen, the end user would not be able to distinguish between
    1) A Jar launched using a manifest.
    2) A Jar launched using webstart.
    3) Loose class files.
    Your fixation on .bat files sounds much like the adage that 'If the only tool you have is a hammer, every job starts to look like a nail'.
    Get over them, will you? +Using .bat files is not a practical way to provide a Java app. to the end user+ (and launching an app. from a .bat looks quite crappy and 'second hand' to +this+ user).
    Edit 1:
    The instructions for running Appleteer as a Jar are further up the page, in the [Running Appleteer: Application|http://pscode.org/appleteer/#application] section.
    Edited by: AndrewThompson64 on May 19, 2009 12:06 PM

  • Java Programming: Any Ideas for breaking a huge class file into smaller ?

    Hello Java pros,
    I have some very huge class files, some with dozens of methods; each method containing an average of a screen-page full of code.
    Obviously, such huge class files are difficult to maintain inspite of using an IDE, especially when changes have to be made to a bunch of a category of methods scattered all over the class.
    I am wondering if there are ways/best-practices out there to make the core class file smaller/smarter - fr eg.
    <a> by retaining the real core definitions within the core class and moving the detailed implementation outside the core class
    <b> by breaking down the file into more manageable pieces - something to the effect of using 'include' files that some languages support
    etc.
    Thanks for your help in advance.
    Sree Nidhi

    If you have huge class files with dozens of methods, maybe the design of your application is not so sound. You could use all kinds of OO design techniques to design your application so that it is easier to maintain.
    Start by learning about design patterns. The most famous book about design patterns is this one: http://www.amazon.com/exec/obidos/ASIN/0201633612/qid=1029971487/sr=2-1/ref=sr_2_1/102-4299125-5141710
    Here is also a nice book about anti-patterns: http://www.antipatterns.com/
    Jesper

  • Missing class file for extended controller

    Any response/advice is greatly appreciated.
    I've searched the forums, and I saw some had this error, but the post wasn't resolved. We are on 12.1.3. I've done this plenty of times when we were on 11.5.10 with great success. I've personalize a page to look at my extendedController, bounced apache:
    adapcctl.sh stop
    adoacorectl.sh stop
    adoacorectl.sh start
    adapcctl.sh start
    Web page brings up:
    oracle.apps.fnd.framework.OAException: oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.classloader.util.AnnotatedNoClassDefFoundError, msg= Missing class: emsc.oracle.apps.emscper.dor.webui.ExtDocsOfRecordUpdateCO (wrong name: ExtDocsOfRecordUpdateCO) Dependent class: emsc.oracle.apps.emscper.dor.webui.ExtDocsOfRecordUpdateCO Loader: oacore.root:0.0.0 Code-Source: /demsci/applmgr/common/java/classes/ Configuration: <library> in /demsci/applmgr/common/webapps/oacore/
    Verified spelling, ensure class file is where it is suppose to be:
    $ echo $JAVA_TOP
    /demsci/applmgr/common/java/classes
    $ echo `pwd`
    /demsci/applmgr/common/java/classes/emsc/oracle/apps/emscper/dor/webui
    Created new /dor/webui directory as user applmgr.
    $ ls -ltr $JAVA_TOP/emsc/oracle/apps/emscper/dor/webui
    total 9
    -rw-r--r-- 1 apdemsci aademsci 3243 Nov 28 18:26 ExtDocsOfRecordUpdateCO.java
    -rwxrwxrwx 1 apdemsci aademsci 3710 Nov 28 18:26 ExtDocsOfRecordUpdateCO.class
    ClassPath has the $JAVA_TOP listed:
    /demsci/applmgr/common/java/classes
    Thanks

    I moved the extended class to the standard directory: $JAVA_TOP/oracle/apps/per/dor/webui
    Recompiled it there
    From Functional Administrator, changed the path of the extended controller to the standard path:
    oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO
    Bounced apache/cleared cached.
    Received the same error, very strange....
    Missing class: oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO (wrong name: ExtDocsOfRecordUpdateCO) Dependent class: oracle.apps.per.dor.webui.ExtDocsOfRecordUpdateCO Loader: oacore.root:0.0.0 Code-Source: /demsci/applmgr/common/java/classes/ Configuration: <library> in /demsci/applmgr/common/webapps/oacore/
    Verified the class file is there and it is where it is suppose to be:
    $ pwd
    /demsci/applmgr/common/java/classes/oracle/apps/per/dor/webui
    you have mail in /var/spool/mail/apdemsci
    $ ls -ltr ExtDocsOfRecordUpdateCO.class
    -rw-r--r-- 1 apdemsci aademsci 3710 Nov 29 15:29 ExtDocsOfRecordUpdateCO.class
    Makes no sense...
    For your other point, I don't want rename the subdirectory since we have other extensions dependent on the path name.
    Thanks

  • For WebLogic 5.1, where should I put my class files for my JavaBeans?

    With JBuilder4, I have built an application with JSP and a few Java Beans (Those JavaBeans are instantiated in those JSP files). There are no EJBs. The package name is called 'onlinetrade'. I have tested the application on JBuilder's web server, it works pretty well.
    Now I am moving this application to WegLogic 5.1. I have encountered a problem with WebLogic 5.1
    and do not know where I should place my JavaBean class files --
    Originally, the JSP files for my application are in package path-- ..onlinetrade\jsp
    and the class files for my beans are in the package path -- ..onlinetrade\jsp\bean\*.class
    Now, with WebLogic 5.1,
    1) I have put my JSP files in
    C:\weblogic\myserver\public_html\onlinetrade\jsp
    2) I have created subdirectory and put my bean class files in
    C:\weblogic\myserver\classfiles\onlinetrade\jsp\bean
    When I started weblogic and the first page - login.jsp page can be up and accessed. But when I login and forward to another JSP page called 'controller.jsp', where a bean is instantiated, I got the following error
    Compilation of 'C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java' failed:
    C:\weblogic\myserver\classfiles\jsp_servlet\_onlinetrade\_jsp\__controller.java:210: cannot access jsp_servlet._onlinetrade._jsp.registerBean
    probably occurred due to an error in /onlinetrade/jsp/controller.jsp line 53:
    registerBean registerBeanInstance = new registerBean();
    I know the javac is working, and a java file is created upon the JSP page, but the problem is -- the bean class files cannot be found!!!
    Where should I create the package path and put my bean class file so that my JSP pages can pick them up?
    Any help is greatly appreciated!
    Thanks.
    --Tim

    I have mine in WEB-INF/classes

  • Looking in the wrong directory for class file

    My javabean looks like this:
    <jsp:useBean id="mailer" class="MailerBean">
    <jsp:setProperty name="mailer" property="*"/>
    <% mailer.sendMail(); %>
    </jsp:useBean>
    The actual MailerBean.class file is in ROOT/public_html/servlets directory. The file that uses the above javabean is in ROOT/public_html/clearresults directory. I have tried a bunch of different lines of code to point to the servlets directory with no success. The javabean continues to point to the ROOT/public_html/clearresults/MailerBean.class file when it should point to ROOT/public_html/servelts/MailerBean.class. How can I point the MailerBean class to the servlets directory without moving the file that uses the javabean?

    Generally you don't have to write code to say where a class is, and I don't know what "pointing" a class is. Things that run servlets and JSPs have rules about where they will look for classes. All you have to do is put your MailerBean class where the rules say to put it. Often that's a directory called something like .../WEB-INF/classes, but check out the rules for your product.

  • CX Archive class file signature change is not reflected in event binding

    I have a CX archive file (.jar). I added a method to one of the class files in it and reuploaded to the archive. But, when I create a CX rule and specify event binding, this new method is not visible in the available list. What could be the cause of this issue and what is the resolution. Thanks.

    Its the way configurator works.
    First it checks in the middeltier java classpath if the class exists and if not, then look into archive to find the class.
    Archive has advantage like if you change the jar, you dont need to bounce the instance (need bounce for changing file on MT).
    Many developer will not have access to put the file on middle-tier, they can easily upload on archive.
    Archive will get moved automatically to target when you publish the model (MT file migration has to be done manually to publication target)

  • Bad Class File error - Win2k & J2SDK1.4.0_01

    Hi,
    I am trying to run a 'Hello World' program which came with the FreeTTS package from links from the java.sun.com website, and am not able to compile the program. I get the error:
    FreeTTSHelloWorld.java:4: cannot access file
    cl.com.sun.speech.freetts.audio.Voice
    bad class file: .\cl\com\sun\speech\freetts\audio\Voice.class
    class file contains wrong class: com.sun.speech.freetts.Voice
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import cl.com.sun.speech.freetts.audio.Voice;
    _______________________________________^
    The FreeTTSHelloWorld.java File is printed below [its embarassingly simple..]
    * Copyright 2001 Sun Microsystems, Inc.
    import cl.com.sun.speech.freetts.audio.Voice;
    import cl.com.sun.speech.freetts.audio.JavaClipAudioPlayer;
    import cl.com.sun.speech.freetts.en.us.CMULexicon;
    public class FreeTTSHelloWorld {
    public static void main(String[] args) {
         try {
         String voiceClassName = (args.length > 0) ? args[0] :
              "com.sun.speech.freetts.en.us.CMUDiphoneVoice";
         Class voiceClass = Class.forName(voiceClassName);
         Voice helloVoice = (Voice) voiceClass.newInstance();
         helloVoice.setLexicon(new CMULexicon());
         helloVoice.setAudioPlayer(new JavaClipAudioPlayer());
         helloVoice.load();
         helloVoice.speak
              ("Thank you for giving me a voice. I'm so glad to say
    hello to this world.");
         System.exit(0);
    catch (Exception e) {
         e.printStackTrace();
    I've tried a billion things, including moving around the .class files [which, by the way, i extracted myself from the .jar files which came with the FreeTTS package - is that what i'm doing wrong? if so, please tell me - ] and still nothing happens - the same error results.
    I've tried reading other cases similar to mine in the forums, but most of the things i read didn't apply to my (quite simple) situation, such as the 'package' line needing to be removed or anything like that..
    I run Win2k and have j2sdk1.4.0_01 installed on my machine
    I beg for anyone's help. Thanks in advance
    -=-Miagi-=-

    Aha!
    Extracting from the jar file might be ok, as long as the directory it's extracted into reflects the class's package name. Open the jar file using WinZip and you'll see that the files it contains are in directories that exactly mirror (including case) the package names.
    The error you're getting tells you that java is looking in .\cl\com\sun\speech\freetts\audio\Voice.class (the '.\' means relative to your current working directory) and my bet would be that the file is not there!
    You shouldn't need to extract these files at all, actually: Try deleting the files you extracted from the jar then try running your program again.
    I hope this is helpful...
    Chris.

  • JNI generated header file does not match the class file

    We have had a JNI project for many years and all has been fine. Within our libraries we have several classes that have inner enum classes.
    Recently we have moved to JDK1.7. Up to now when JNI generated the methods where the signature used the inner enum class, and it was an oveloaded method, we would get something like the following as the signature:
    Java_PackageName_ClassName_methodName_OuterClass_00024InnerEnum_2
    And the class file result of the build would look like the following:
    methodName(OuterClass$InnerEnum)
    Since we have moved to JDK 1.7 the header file looks like the following:
    Java_PackageName_ClassName_methodName_OuterClasss_InnerEnum_2
    The class file is still the same, and because of that when we run the program we get an UnsatisfiedLinkError. I understand that this error is because the VM cannot find the implementation. So why JDK 1.7 generates a header file that does not match the class file?
    Thank you in advance.

    I don't have 1.6 to verify but your statements about what is generated for 1.7 for the header appear correct.
    The 000024 represents the '$' and for 1.7 the inner class is still named using '$'. So for example after compiling in 1.7 the inner class file is named the following...
    MyClass$InnerEnum.class
    So a one to one conversion should have kept the 000024 (presuming it does in fact do it that way in 1.6.)
    You might want to look at the release notes for 1.7.
    If you need a solution you could add a post javah step that renames the file.

  • Missing .class file

    I run "javac" and looks that javac compile file "HelloWorldApp.java", but when I try to run "java HelloWorldApp" I have error
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/class
    If I go to my directory I can no see .class file. Why?
    I set varible for PATH and CLASSPATH ....

    I see where problem is ...
    I set PATH but does not work ... this is how looks
    like
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System
    32\Wbem;C:\Program Files\Cisco\Call Manager Attendant
    Console\jre1.4\bin;C:\Program Files\Microsoft SQL
    Server\80\Tools\BINN;C:\Program
    Files\Java\jdk1.6.0\bin;
    After I run C:\> javac HelloWorldApp.java , javac
    compile second copy of "HelloWorldApp.java" located
    in C:\
    On this location I found .class file ...
    (I was thinking if I set PATH, I have to save application there tooNo, PATH is an environment variable that tells the operating system where to look for executable files. That tells Windows where to find the .exe files like javac and java and jar.
    ..or when I call "javac" <file
    name>, I have to be in that directory where I saved
    file)Yes.
    I set CLASSPATH to "C:\Program
    Files\Java\jdk1.6.0\bin" and this looks like works
    fine.No, this is a waste. In spite of what that tutorial tells you, there's no need for a CLASSPATH environment variable. (Yours is wrong, BTW.) CLASSPATH is for the JVM. It tells the compiler and runtime where to look for .class files that it needs.
    The right way to set CLASSPATH is using the -classpath option on javac.exe and java.exe. Read those docs.
    After I run "java HelloWorldApp" I have error because
    CLASSPATH is set for diferent location ...java.exe ignores your CLASSPATH anyway.
    >
    When I moved my .class file from loaction "C:\" to
    "C:\Program Files\Java\jdk1.6.0\bin " and run
    "C:\>java HelloWorldApp", I did not have any error
    and application works fine.That's wrong. Your code does not belong in there. Ever.
    >
    So, why my PATH does not work for "javac" ???Your PATH works fine, because Windows found javac.exe and java.exe. It's CLASSPATH that's incorrect.
    Compile like this:
    javac *.javaRun like this:
    java -classpath . HelloWorldAppNote the "dot" after -classpath. That sets the CLASSPATH to the current directory.
    %

  • Back to .class file

    hello all,
    I'm not big into java yet, but I have a script I'm playing around with that I decompiled from a .class file and moved things around a bit... now I want to compile it back to a .class file and have no idea how. I can't seem to find a freeware program to do it with.
    please excuse my newbiness...
    thanks for the help
    ziggy

    Start with this tutorial http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Do not skip anything, and be sure to read the Installation Instructions (there's a link), especially #5, and set the PATH variable as instructed.
    It will lead you through installing and learning to use the compiler, then running a program.

  • .Class file not updating

    Hi all,
    I am working on an applet that requires the use of a .class file. So, when I make changes to test.java, I want the changes to move over to test.class, however they are not moving over there. In a sense, my .class file is outdated and is not updating when I save my .java file or run it (as an applet). How can I get this file to update?
    -Christ_guard

    Christ_Guard wrote:
    No, build automatically is on, and manually building does not work either.Then put aside the IDE and work with a text editor, javac and the jar tool until you figure out what you are doing. Obviously you are doing something wrong in your compiling and/or deploying steps and it's not productive for anyone, including you, to have us sitting around playing guessing games as to what might be the problem.
    Also from your initial post it is clear that you don't understand the life-cycle of a Java program. Your java file is source, it has nothing to do with what happens at runtime. It is only the compiled class file that is important.
    See http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
    If you are on a different OS then choose the applicable one here http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html

  • How to move(migrate) OAF files(class files,PG files) using tool(Kintana)

    Hi,
    How to move(migrate) OAF files(class files,PG files) using tools(Kintana).
    Just want to know process for moving(migrating) OAF Files(class,PG) one instance to over instance(i.e dev to testing) using tools like kintana. We are planning to PVCS as versioning tool.
    Thanks

    New Line Types need to be added to Kintana Workflows and these line types should be able to use the xmlimport/xmlexport scripts.
    We have customized Kintana to migrate forms personalizations using FNDLOAD.
    I think, Change Management team should be able to address this.
    Srini

  • Java plugin is hitting server to much for class files

    Hi,
    I am moving a jar plugin from the microsoft JVM to Sun JVM. It seems that while the file does run ok I am getting multiple hits to a handler.class file in multiple packages. As you see below:
    network: Connecting http://128.1.1.152:8001/cis/media/processor/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/processor/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/processor/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/processor/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/com/sun/media/processor/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/com/sun/media/processor/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/com/ibm/media/processor/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/com/ibm/media/processor/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/media/processor/unknown/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/processor/unknown/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/processor/unknown/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/processor/unknown/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/media/content/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/content/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/content/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/content/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/com/sun/media/content/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/com/sun/media/content/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/com/ibm/media/content/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/com/ibm/media/content/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/media/content/unknown/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/content/unknown/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/content/unknown/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/content/unknown/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/media/content/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/content/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/content/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/content/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/com/sun/media/content/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/com/sun/media/content/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/com/ibm/media/content/raw/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/com/ibm/media/content/raw/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/media/content/unknown/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/content/unknown/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/content/unknown/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/content/unknown/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/media/protocol/file/DataSource.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/protocol/file/DataSource.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/protocol/file/DataSource.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/protocol/file/DataSource.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/media/processor/audio/x_wav/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/processor/audio/x_wav/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/processor/audio/x_wav/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/processor/audio/x_wav/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/com/sun/media/processor/audio/x_wav/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/com/sun/media/processor/audio/x_wav/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/com/ibm/media/processor/audio/x_wav/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/com/ibm/media/processor/audio/x_wav/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/media/processor/unknown/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/media/processor/unknown/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    network: Connecting http://128.1.1.152:8001/cis/javax/media/processor/unknown/Handler.class with proxy=DIRECT
    network: Connecting http://128.1.1.152:8001/cis/javax/media/processor/unknown/Handler.class with cookie "company.appmodeCookie=crs; JSESSIONID=HjON7z0BRKgbRQxE3FfpNSktTFuz1QoEeElcz6AJ1GmQMaQh9Vxj"
    Can anyonetell me what I need to do to improve the performance of my plugin in this case. Is a parameter not set?
    Thanks,
    Marc

    If you are using the JDK 1.6 plugin, then you can set the "codebase_lookup" property to false to avoid these calls. Documented in
    http://java.sun.com/javase/6/docs/technotes/guides/plugin/developer_guide/special_attributes.html#specialattributes
    If you're using JDK 1.5 or below, well, tough luck.

Maybe you are looking for

  • Make LV VI front panel appear

    I am a TestStand newbie.  I want to make a dialog box with LabVIEW.  I am using the sequence editor.  I have made a very simple VI with two controls and an OK button.  There is an event structure which triggers when the OK button is pressed.  The pro

  • Disappearing images on storage disks

    I am using in my dig camera a 2GB storage mini disk (SanDisk). I am at a loss as to why after I have viewed the contents ("jpg" images) once on my 2.4 GHz iMac Core 2 Duo, I can not find again the pictures on that same disk (nor on my computer). Usin

  • Creating a table in App Express

    I know the statement and can function from anyone else's machine. Does anyone know why my laptop would lock up when I run a simple "create table as...." statement in SQL Workshop? I can run just about any other query, but the create statemtn locks th

  • R/3 vs BW - Missing documents in BW

    Hi, After comparing the BW data with R/3 in production, we found the following variances, Identified BW variances: 1) PCA Cube Variance 11/05 & 12/05 - resolved        – resolved by execution of full load. 2) PCA Cube Variance 08/05 - unresolved     

  • Why i cant watch facebook videos on firefox 4 ? please tell me how to solve it in steps !

    since i updated to firefox 4 ... i cant watch Facebook videos !!! please tell me how to solve that .!! please