Java Program Not Running

Hi,
I have a small Java program that imports Oracle.sql.* and Oracle.jdbc.*.
It establishes a default connection and converts a String[ ] to Oracle.sql.ARRAY type.
As per Oracle documentation, I have added paths of required .zip files in CLASSPATH variable.
Though I am able to compile the code, but when I try to run it thru java, it gives me error:
Exception in Thread "main" java.lang.NoClassDefFoundError: TestInstallJDBC
The .java and .class files are in current directory and I'm using
java TestInstallJDBC.
What can be the problem?
Any help is appreciated.
Thanks

Ah, I re-read your first post - you said you added paths to the Classpath. So you need to add . to your Classpath as well. For Windows .;<existing_classpath> or for Unix .:<existing_classpath>

Similar Messages

  • Java program not running by the Ant

    i have a small java program.
    its a classpath problem.
    cant figure out where is the problem.
    i am running the code via Ant.
    build.xml
    <?xml version="1.0"?>
    <project name="myproject" basedir="." default="all">
        <property name="src.dir"     value="src"/>
         <property name="classes.dir" value="classes"/>
         <property name="lib.dir"     value="C:/tomcat/webapps/axis/WEB-INF/lib"/>
         <property name="runclass" value="TestClient"/>
         <target name="all" depends="clean,compile"/>
         <target name="clean">
            <delete dir="${classes.dir}"/>
        </target>
        <path id="classpath">
            <fileset dir="${lib.dir}" includes="**/*.jar"/>
        </path>
        <target name="compile">
            <mkdir dir="${classes.dir}"/>
         <javac srcdir="${src.dir}"
          destdir="${classes.dir}"
          deprecation="on"
          debug="on">
       <classpath><path refid="classpath"/></classpath>
      </javac>
         </target>
         <target name="run" depends="compile">
       <!-- run the class -->
       <java classname="${runclass}">
            <classpath>
              <pathelement path="${classpath}"/>
              <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
            </fileset>
              </classpath>
           </java>
      </target>
         </project>i invoked
    ant runand got this
    Buildfile: build.xml
    compile:
    run:
         [java] Could not find TestClient. Make sure you have it in your classpath
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
    .java:170)
         [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
         [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
         [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
         [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
    va:275)
         [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
         [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
         [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
         [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
    a:1216)
         [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
    faultExecutor.java:40)
         [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
         [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
         [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
         [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
         [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    BUILD SUCCESSFUL
    Total time: 2 secondsso, code is not running......its dfinitely a classpath problem , because error message says "Could not find TestClient. Make sure you have it in your classpat".
    TestClient is the name of main class file.
    not sure whats wrong with this build.xml ? whats wrong in it ?
    one thing , i guess, i did not mention "." , current directory in the build.xml ......is it because of that ?
    i browsed apache manual......To Run a Java program.....first, they are making a JAR file ...and then they are executing the JAR.
    i really, dont need the JAR file......i just want to run it.....thats enough.
    somewhere, i have to do some modification in this buld.xml.......do you have any idea ?
    thank you

    TestClient folder has
    1)src
    2)classes
    3)build.xml
    i have posted the build.xml already.
    now, src folder has TestClient.java
    TestClient.java
    ==================
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    public class TestClient {
       public static void main(String [] args) {
         try {
           String endpoint =
               "http://ws.apache.org:5049/axis/services/echo";
           Service  service = new Service();
           Call     call    = (Call) service.createCall();
           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           call.setOperationName(new QName("http://soapinterop.org/","echoString"));
           String ret = (String) call.invoke( new Object[] { "Hello!" } );
           System.out.println("Sent 'Hello!', got '" + ret + "'");
         } catch (Exception e) {
           System.err.println(e.toString());
    }and i did
    ant runand i got those errors.
    clearly, its not able to run it.
    looked the manual....did not find anything special about java task....still not working.

  • Can a java program be run in the background?

    Hi all,
    Can a java program be run in the background without the user being aware of it? I need to make a program that continuosly monitors a pc at regular intervals and runs at all time. It should be hidden(shouldn't display on the screen while running) from the user, and also, can it be run as a system file so that even if a user checks he/she would think of it as a system file?

    I'm the administrator of all the computers. Then as I said there are commercial applications that do that.
    Presumably you expect a problem now. And implementing an acceptable solution is going to take you months. Because not only need to 'hide' the application, you also need to set up all the monitoring and logging capability. And the first will require quite a bit of JNI work along with testing (in particular as it could interfer with existing applications on the users computers.)
    I need to
    install the software in all the machines and i want
    that the users who use the machine should not be able
    to close the program through the task manager. If the users have admin rights then they can terminate a windows service.
    And if they don't have admin rights then you can simply turn off the ability to install anything.
    I want
    to know what the resources of the computers are and
    that if anyone has added a resource to it or
    not(attaching a flash usb thumbdrive etc). Lots of JNI.

  • Java will not run in IE9

    I find this problem posted all over the internet -- however, I have found few answers and no solutions that work.
    Java will not run in IE9 
    In the last three days I have installed Java 7.5 at least five times (after total uninstalls).
    I have Windows 7 Home premium with all updates installed.  Anti-virus programs are installed.
    Even the java website   http://www.java.com/en/download/testjava.jsp cannot detect the Java program in IE9.  It displays the following message:  “No working Java was detected
    on your system.  Install Java by clicking the button below.”
    I know you don’t want to hear about other browsers, however, this is part of the diagnoses – Java works fine in Chrome.  (Obviously, there are some programs that can only be accessed in IE.)
    I have tried turning off the firewall, anti-virus AVG, active x filtering, and every other program.  I have cleared the browsing history, cookies, etc.  50 times = nothing works.
    I experienced that Java did work once and only once in IE9 after each of two new reinstallations of Java 7.5.
    Process Explorer shows that Java is running, I’ve included a screen- shot (hope it shows up)
    All knowledgeable answers are appreciated.

    Hi,
    Have you tried the compatibility mode in Internet Explorer 9? Or does this issue occur to previous Internet Explorer versions?
    For reference about compatibility mode:
    http://blogs.msdn.com/b/ie/archive/2010/10/19/testing-sites-with-browser-mode-vs-doc-mode.aspx
    How to use Compatibility View in Internet Explorer 9
    You could try to deselect the “Automatically Detect Settings” to check how it works.
    And enable the scripting of Java applets settings:
    1. Click "Tools" --> "Internet Options"  
    2. Next, select the Security Tab, and select the "Custom Level" button
    3. Scroll down to "Scripting of Java applets"
    4. Make sure the "Enable" radio button is checked.
    5. Click OK to save your preference.
    Or you could try to change the settings in group editor:
    Computer Configuration\Administrative Templates\Windows Components\Internet Explorer\Internet Control Panel\Security Page\Internet Zone\Java Permissions
    Meanwhile, I suggest you could
    reset Internet Explorer settings to see the results.
    Hope this helps.
    Vincent Wang
    TechNet Community Support

  • HT1338 java is not running and there are no updates.  what do i do?

    Java is not running and all software updates are current.  What can I do?

    Is Java enabled?

  • How to find that a java program is running for the first time on daily basi

    it is like this
    1. i will ran a java program every day and i have to find that it is running for the first time(as i may stop that program and may run again the same day )
    Pls share ur ideas

    san.kumar wrote:
    it is like this
    1. i will ran a java program every day and i have to find that it is running for the first time(as i may stop that program and may run again the same day )
    Pls share ur ideasAs kajbj said - you need to store a token / file with a run date on the file system. Each time the application runs, have it compare with the date from this file with the current date. If different, it's the first run of the day. If not, it is not the first run of the day. Each time have it update the date on the file.

  • Java program not working using newer version of scheduler (AutoSys)

    A little background: I'm in the middle of trying to upgrade our AutoSys server (scheduler) to the latest version (version R4 to R11) and have to do regression testing to ensure our jobs will work in the new version. There's a small java program that is not working supposedly due to the following error:
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/f1j/swing/common/JDKAdapter
    at com.f1j.swing.common.Adapter.<clinit>(Adapter.java:86)
    at com.f1j.swing.engine.ss.JBook.<init>(JBook.java:3032)
    at com.f1j.swing.engine.ss.JBook.<init>(JBook.java:3096)
    at com.test.Foo.performScan(Foo.java:122)
    So in the old version (R4), it runs fine. In R11, I get the exception above. The CLASSPATH matches and I've verified that by echoing it in the shell script that calls the java program. Here's how it's called in the shell script.
    echo $CLASSPATH
    ${JAVA_HOME}/bin/java com.test.Foo
    So the Foo class was written by me, which makes use of this external library called f1j11swing.jar (for spreadsheet creation).
    The source of the error is from this line in Foo (line 122):
              book = new com.f1j.swing.engine.ss.JBook();
    The funny part is JDKAdapter (the missing class) is in the same jar file as JBook, so it definitely finds the library in the classpath. But for some reason, this new AutoSys version is spitting out this error. I've exhausted many approaches to resolving this, but I'm still stuck.
    Here's the layout of how things are called (should be same for R4 and R11):
    1. AutoSys server logs into client machine XYZ as user arnold
    2. arnold (AutoSys client) on XYZ executes shell script to call java program
    The only significant difference I see is that the AutoSys server in R4 is HP while the R11 server is Sun. However, it shouldn't matter because the client server they're logging into to execute the script is the same linux server.
    Does anyone have any ideas? I've already started dialogue with the vendor and it seems kind of in limbo at the moment. Please let me know if you need more info. Thanks.

    Hi DrClap,
    I just checked jre/lib/ext of my $JAVA_HOME and verified that there doesn't exist any library with a class named "Adapter." We don't put anything in this directory other than what came with the original installation. I've tried isolating the jars before as well, by doing something like (to no avail):
    java -cp /users/test/lib/f1j11swing.jar:/users/test/lib/Foo.jar com.test.Foo
    If I remove the f1jswing11.jar path in the above command, it will complain about other things. Also, for fun, I tried dropping f1j11swing.jar into the ext folder and removing it from the CLASSPATH and it yielded the original error. Running it directly from the shell and old version of autosys works fine.
    I hope I understood your suggestion correctly and please let me know if you have any other ideas. I'm surprised why java would act differently with a different version of an AutoSys client logging into the same machine and environment. Thanks.
    xiarce - I haven't heard anything regarding this, but I'll bring it up. Thanks.
    Edited by: user4170063 on Apr 13, 2011 2:25 PM

  • Java programs not working.

    I'm having problems running java programs. Whenever I open them, the window will open, but nothing will appear inside. The only parts of the program that appear, and only sometimes, will be the word "cancel" or "OK" where there should be buttons, but the rest of the program, including text boxes, other buttons, anything else, etc. will not load. Does anybody have any ideas as to what might be the problem? Thank you.

    Hmmm. Both of those programs work fine on my machine. We're running the same version of the OS and the hardware shouldn't matter, but maybe someone with an Intel Mac like yours could try them and report on their results.
    As a shot in the dark, you could run the standard maintenance routines like Repair Permissions and Repair Disk to see if that fixes your problem. Other than that, I don't know what to suggest. Sorry.

  • Java is not running in Firefox, but runs in other browsers.

    I am trying to run java in my Firefox 3.6.13 browser.
    Java works perfectly in Internet Explorer, but I rather use fire fox.
    I have java installed, and it appears in my (about:plugins) page as all enabled.
    yet when I go to the java website to detect java, I end up watching the swirling bar go on forever and then it reports I have no java installed.
    Every page that uses java appears blank, the page loads around the java perfectly, but its just an empty space where anything java is.
    I made sure to check the control panel and make sure it is enabled for mozilla family as well as the next gen java is selected. unfortunatley no matter how many times I uninstall java/fire fox, and re install, Java will not work

    The ''' "Search" ''' box isn't going to do you any good, you need the '''Run''' box. There isn't a "file" in the Firefox Program Files folder that you can use to launch the Firefox SafeMode. ''Firefox 4.0 has a fix to get around this problem in Vista and Win7, so you won't have to activate the '''Run''' box.''
    See if this works in Windows 7: <br />
    http://blogs.msdn.com/b/tims/archive/2006/09/18/windows-vista-secret-3-bringing-back-start-run.aspx

  • Email program not running. Messaging Exception coming,

    I am making an program which will send the mail to a gmail account. On my laptop following are installed:
    - Apache Tomcat
    - Eclipse
    But the servlet is not able to send the mail to gmail account. I am directly sending the mail to the gmail account. I dont have PostCard Server installed on my laptop.Following exception is coming:
    import javax.servlet.ServletException;
    import javax.servlet.http.*;
    import java.io.*;
    public class InServlet extends HttpServlet
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException
         doGet(request,response);
    public void doGet(HttpServletRequest request, HttpServletResponse response ) throws IOException
         PrintWriter out=null;
         out= response.getWriter();
         response.setContentType("text/html");
         new GetMail().getTheMessages();     
         out.println("The mail has been send successfully");
    import java.util.Date;
    import java.util.Properties;
    import javax.mail.Address;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.SendFailedException;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    public class GetMail {
         static String msgText = "This is a message body.";
           public void getTheMessages() {
             String to = "[email protected]";
             String from = "[email protected]";
             String host = "localhost";
               // create some properties and get the default Session
             Properties props = new Properties();
             props.put("MAIL.SMTP.HOST", "smtp.gmail.com");
             props.put("MAIL.SMTP.PORT","25");
             //props.put("MAIL.TRANSPORT.PROTOCOL","SMTP" );
             Session session = Session.getInstance(props,null);
             try {
               // create a message
               Message msg = new MimeMessage(session);
               msg.setFrom(new InternetAddress(from));
              msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
               msg.setSubject("JavaMail APIs Test");
               msg.setSentDate(new Date());
               msg.setText(msgText);
               Transport.send(msg);
             } catch (MessagingException mex) {
               System.out.println("\n--Exception handling in GetMail.java");
               mex.printStackTrace();
               System.out.println();
               Exception ex = mex;
               do {
                 if (ex instanceof SendFailedException) {
                   SendFailedException sfex = (SendFailedException) ex;
                   Address[] invalid = sfex.getInvalidAddresses();
                   if (invalid != null) {
                     System.out.println("    ** Invalid Addresses");
                     if (invalid != null) {
                       for (int i = 0; i < invalid.length; i++)
                         System.out.println("         " + invalid);
         Address[] validUnsent = sfex.getValidUnsentAddresses();
         if (validUnsent != null) {
         System.out.println(" ** ValidUnsent Addresses");
         if (validUnsent != null) {
         for (int i = 0; i < validUnsent.length; i++)
         System.out.println(" " + validUnsent[i]);
         Address[] validSent = sfex.getValidSentAddresses();
         if (validSent != null) {
         System.out.println(" ** ValidSent Addresses");
         if (validSent != null) {
         for (int i = 0; i < validSent.length; i++)
         System.out.println(" " + validSent[i]);
         System.out.println();
         if (ex instanceof MessagingException)
         ex = ((MessagingException) ex).getNextException();
         else
         ex = null;
         } while (ex != null);
    javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
    nested exception is:
         java.net.ConnectException: Connection refused: connect
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282)
         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
         at javax.mail.Service.connect(Service.java:275)
         at javax.mail.Service.connect(Service.java:156)
         at javax.mail.Service.connect(Service.java:105)
         at javax.mail.Transport.send0(Transport.java:168)
         at javax.mail.Transport.send(Transport.java:98)
         at GetMail.getTheMessages(GetMail.java:40)
         at InDotComServlet.doGet(InDotComServlet.java:18)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:516)
         at java.net.Socket.connect(Socket.java:466)
         at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
         at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)
         ... 22 more
    Edited by: carox on Dec 14, 2009 4:16 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Properties are case sensitive. Furthermore, you need to look-up on google for the right properties (TLS and so on).
    props.put("MAIL.SMTP.HOST", "smtp.gmail.com");
    props.put("MAIL.SMTP.PORT","25");

  • 32 bit compiled Java Program not connecting to 64 bit Oracle 11g

    Hi,
    I am using one java program to connect to Oracle 11g (64 bit version) using Oracle10g 32 bit client libraries using OCI calls. Below is the program. If I compile it using 64 bit Oracle 10g libraries ($ORACLE_HOME/lib and $ORACLE_HOME/rdbms/lib) , it perfectly connects to Oracle11g but when i compile it using $ORACLE_HOME/lib32 and $ORACLE_HOME/rdbms/lib32, it hangs and keeps trying and takes 100% cpu usage. it does nothing. Please suggest what is going wrong in the environment.
    ============================
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws Exception
    Class.forName ("oracle.jdbc.OracleDriver");
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@lvfd", "fde", "fde");
    // or oci7 @TNSNames_Entry, userid, password
    try {
    Statement stmt = conn.createStatement();
    try {
    ResultSet rset = stmt.executeQuery("select * from tab");
    try {
    while (rset.next())
    System.out.println (rset.getString(1)); // Print col 1
    } finally {
    try { rset.close(); } catch (Exception ignore) {}
    } finally {
    try { stmt.close(); } catch (Exception ignore) {}
    } finally {
    try { conn.close(); } catch (Exception ignore) {}
    ================================================

    >
    I am compiling like when LD_LIBRARY_PATH set to $ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32.
    javac -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess.java
    as my program resides in current directory. I run it like :
    java -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess
    Output: it hangs forever.
    I am compiling like when LD_LIBRARY_PATH set to $ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib
    javac -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess.java
    as my program resides in current directory. I run it like :
    java -cp .:$ORACLE_HOME/jdbc/lib/ojdbc14.jar dbAccess
    Output: It gets connected and list all the tables as output.
    >
    The ojdbc14.jar file is for use with Java 1.4 VMs.
    Are you still using Java 1.4? If so, why?
    For Oracle 11g you should be using the latest JDBC jar file (ojdbc6.jar) and the latest version of Java 1.6.
    You are not only using an old JDBC driver and Java version but are also trying to mix 32 bit and 64 bit operations.
    I suggest you start using recommended practices and update your Java and JDBC versions and select EITHER 32 bit or 64 bit operations.
    See the Official JDBC FAQ for the details on the support available for various combinations of Oracle DB, Java and the JDBC drivers:
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html

  • Programs not running in leopard

    my adobe creative suite and office:mac v.X are not running after installation of leopard, which i bought to use with my 16gb iphone. suggestions?

    Java Preferences can be found using Spotlight.
    Update your Java 6 as previously instructed as it's supplies security fixes.
    Java 7 and above is for 10.7 and above, Oracle is dropping support for Java 6.
    However all versions of Java have been HIGHLY insecure, so it's advised not to use them at all
    If your using Java based programs (like the free LibreOffice) then certainly disable Java in all web browsers and applets in Java Preferences.
    Apple has a now annual OS X upgrade cycle that is causing havoc and disqualifying  older, but perfectly working machines from running necessary software and dragging third party developers along.
    So one shouldn't be running Safari (outdated and no Safari 6), Java 6, very possibly Chrome on OS x 10.6.8, but if you upgrade to 10.7 or above, your machine will perform slower and all your PPC based software will no longer continue to function.
    It's sad, because OS X Snow Leopard has  1/4 OS X market share still and many can't upgrade because developers are not issuing 10.7/10.8 versions of their software because of AppStore and Gatekeeper signaling the closing of the operating system in the future.
    The 10 year support cycle of Windows versions sounds like blessed relief compared to Apple's annual OS X upgrade nightmare.
    OS X 10.4/10.5 need to upgrade, 10.6.8 ok still

  • Graphical programs not running--need help

    Using win98 platform, textpad, and jdk1.5.0...
    DOS programs run fine, however, graphical applications do not run--it goes to the DOS window and brings up strings of stuff instead.
    When I compile, the error message that generally shows:
    Note: C:\jdk1.5.0\demo\...java uses or overrides a depreciated API
    Note: Recompile with -Xlint: depreciation for details.
    And for applets, this line also existed on a demo:
    Note: C:\jdk1.5.0\demo\applets\Animator\Animator.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint: unchecked for details.
    Anybody know what to do here? I'm just learning java from books, but I need to be able to run java applications in order to get a feel for the code. Help would be appreciated.

    If anyone deems it a necessity, here is an example of simple code that will throw this problem:
    (sorry-under win98 2nd ed.)
    import java.event.*;
    import javax.swing.*;
    class CloseableFrame extends JFrame
    {  public CloseableFrame()
    {  setTitle("Closeable Frame");
    setSize(300,200);
    addWindowListener(new WindowAdaptor()
    {  public void windowClosing(WindowEvent e)
    {  System.exit(0);
    public class CloseableTest
    {  public static void main(String[] args)
    {  JFrame frame = new CloseableFrame();
    frame.show();
    }

  • Getting java program to run (really basic)

    Hi,
    I'm used to running java programs through the programs I write with, like Eclipse, but now I'm trying to run a program on a compuyer without those things and I'm stuck.
    I'm running Windows XP and have downloaded the SDK Version 1.4.2, The java.com website says I have the latest software, everything is up to date.
    All the sites I see say that the way to run a program is to use the 'javac' command from the command prompt. However, doing this (with or without a file name appended) gives me the error: 'javac is not recognized as an internal or external command, operatable program or batch file.'
    What do I need to do to run a simple java program from a bunch of .java files?
    Help much appreciated, thanks.

    All which instuructions?
    1. I've followed all the instructions at 'Installation Instructions', http://www.java.com/en/download/help/5000010300.xml. They have instructions to
    .A: Download and Install: All done.
    .B: Enable and Configure: They say it only relates to browsers and applets
    .C: Test installation: Test comes out positive.
    2. The files that were downloaded: Contain no instructions
    3. All the 'Enable' instructions found here: http://www.java.com/en/download/help/index_configuration.xml
    These relate to:
    .A:Switching between Microsoft VM and JRE
    .B:Enabling JRE for browsers and Applets
    .C: Clearing the cache
    .D: Viewing the console,
    etc etc. None of them seem to be about setting a path.
    Can you tell me which instructions you mean?
    Thanks

  • Java program stopped running when using JVMPI

    Hi!
    I'm writting a very simple profiler using JVMPI. I intended to pause/continue it by sending signal, like kill -SIGUSR2 PID, to it, but whenever I did this, the java program that ran with the profiler stopped running, however the profiler kept running properly.
    Here's the code of the simple profiler and the testing java program.
    //myprofiler.cc
    #include <jvmpi.h>
    #include <pthread.h>
    #include <stdio.h>
    #include <signal.h>
    void sig_handler_pause(int);
    static JVMPI_Interface *jvmpi_interface;
    void notifyEvent(JVMPI_Event *event) {
    switch(event->event_type) {
    case JVMPI_EVENT_CLASS_LOAD:
    fprintf(stderr, "myprofiler> Class Load : %s\n", event->u.class_load.class_name);
    break;
    case JVMPI_EVENT_OBJECT_ALLOC:
    fprintf(stderr, "myprofiler>object alloc \n");
    break;
    extern "C" {
    JNIEXPORT jint JNICALL JVM_OnLoad(JavaVM jvm, char options, void *reserved) {
    fprintf(stderr, "myprofiler> initializing ..... \n");
    // get jvmpi interface pointer
    if ((jvm->GetEnv((void **)&jvmpi_interface, JVMPI_VERSION_1)) < 0) {
    fprintf(stderr, "myprofiler> error in obtaining jvmpi interface pointer\n");
    return JNI_ERR;
    // initialize jvmpi interface
    jvmpi_interface->NotifyEvent = notifyEvent;
    // enabling class load event notification
    jvmpi_interface->EnableEvent(JVMPI_EVENT_CLASS_LOAD, NULL);
    fprintf(stderr, "myprofiler> .... ok \n\n");
    signal(SIGUSR2,sig_handler_pause);
    return JNI_OK;
    void start(){
              fprintf(stderr,"start...\n");
         jvmpi_interface->EnableEvent(JVMPI_EVENT_OBJECT_ALLOC, NULL);
    jvmpi_interface->EnableEvent(JVMPI_EVENT_CLASS_LOAD,NULL);
    void pause(){
              fprintf(stderr,"pause...\n");
              jvmpi_interface->DisableEvent(JVMPI_EVENT_OBJECT_ALLOC, NULL);
    jvmpi_interface->DisableEvent(JVMPI_EVENT_CLASS_LOAD,NULL);
    int status=0;
    void sig_handler_pause(int sig){
         if(status == 0){
              start();
              status = 1;
         else if(status == 1){
              pause();
              status = 0;
    //Test.java
    public class Test {
    public static void main(String[] args) {
         try {
                        int i = 0;
    while(true)
                             Thread.sleep(1000);
                        System.out.println(i++);
              catch (Exception e) {
                        e.printStackTrace();
    Here're some notes:
    1)If I didn't call
    jvmpi_interface->EnableEvent(JVMPI_EVENT_OBJECT_ALLOC, NULL);
    in "start()" function, the java program Test ran properly after I sent signal to the process by using kill command in an command line;
    or
    2) If I delete "Thread.sleep(1000)" in Test.java, then whether I call
    jvmpi_interface->EnableEvent(JVMPI_EVENT_OBJECT_ALLOC, NULL);
    in "start()" or not, the Test program ran properly after I sent signal to the process.
    It seems to be a thread dead lock, but I'm not sure. Can any body help?Thanks very much.

    I should strongly recommend moving from JVMPI to JVM TI if you can. The reason is that JVMPI has been deprecated since 5.0 and can not be used with Java SE 6 and newer.
    Anyway, the issue you have may be due to the signal you are using. I'm not sure which operating system this is but on Linux the USR2 signal is used for the suspend/resume implementation. Have you looked at the Troubleshooting Guide or the Signal Chaining page for details on how signals are used and how to chain handlers? Another idea is to remove the signal handling code implementation and to use the data dump event. This is supported by both JVMPI and JVM TI so that you get an event (via the QUIT signal).

Maybe you are looking for

  • HTML-Sourcecode Question / Inline definitions

    Hello We want to edit the Header (mastHead) of the vibe (it shout be higher than the default configuration). In wich file are the definitions of the "gwtMainPageDiv" or rather the inline-definitions of the "mastHead" saved? We can't find it in any fi

  • Temporary email address in Transaction ME21N

    Experts I want to maintain (temporary email address in Transaction ME21N) e-mail address in the PO header details of the vendor and the system has to send the PO from the temporary email address. But it is considering from the vendor master only .How

  • Bdc recording for mek1

    hi i have been asked to do bdc recording for the transaction mek1 through the call transaction method.can u people plss tell me how to go abt it?

  • Using both ARD 3.1 admin and ARD 2.2 admin - troublesome issue

    I have searched and found various posts on this, but no comprehensive thread. Many who have used ARD 3 have encountered the "This Task Will Fail - Old Remote Desktop Client Software" when trying to perform tasks on clients with old (pre-3.0) software

  • Registry.lookup() return Remote object from different ip address

    I've got this error using Registry reg = LocateRegistry.getRegistry(serverName, Registry.REGISTRY_PORT); service = (ILogin) reg.lookup("service");and when I use debugger I've got this RegistryImpl_Stub[UnicastRef [liveRef: [endpoint:[10.240.161.66:10