Running HelloWorld.class in Macintosh

I am trying to run a java hello world program in macintosh os x 10.3.2, using jbinder, its asking me to set the classpath, when i am trying to set the classpath, its asking me to save the settings, if i click the save setting button, its giving error -34 , could anyone tell me how to resolve this??
Thanks
srinivas

Hi
Thanks for cooperationg. I am able to execute the java program by using the terminal that comes with Mac os x called tcsh. Anyhow i will try the jbindary approach also.
I have one more problem with Mac, from the server i am generating a Microsoft word document with some data in it, and i am trying to open it in clients machine which is a Mac os x, and my server is windows 2000.
I installed Microsoft office in Mac, as of now i hard coded the path of word.exe in Mac, its something like this:
"/Macintosh HD/Applications(Mac OS X)/Microsoft Office 2001/Microsoft Word"
My actual word.exe is something like this in Mac
"DevX/Applications(Mac OS X)/Microsoft Office 2001/Microsoft Word"
Does these two paths make any difference?
Does the Mac os x takes the "/" or it expects ":" ?
At last i am not able to open my word doc from Mac.
Could you please tell the actual way to open it?
Thanks
With regards
Srinivas

Similar Messages

  • Error while running HelloWorld.class

    i am new in java. please guide me.
    i have made Helloworld.Java file
    public class HelloWorld
    public static void main(String[] args)
    System.out.println("Hello Java World!");
    and compile it using following command
    e:\javawork>javac HelloWorld.Java
    no message and prompt appeared.
    but when i want to show by using following command
    e:\javawork>java HelloWorld
    Exception in thread "main" java.lang.NoClass DefFoundError: HelloWorld ..... ??

    Hi faisal_Sharif,
    Exception in thread "main" java.lang.NoClass DefFoundError: HelloWorld/javaoccurs because java didn't find HelloWorld.class which is not genertated when you given javac HelloWorld.java command.
    As Aakash has given a link... hope it will help you.
    But I have a small doubt:
    If the path is not set than instead of following exception:
    Exception in thread "main" java.lang.NoClass DefFoundError: HelloWorld/javafollowing exception should come:
    'java' is not recognized as an internal or external command, operable program or batch file.on Windows OS.

  • Error while running HelloWorld page in OAF

    Hi,
    While running Helloworld tutorial its throwing following Exception:
    oracle.apps.fnd.framework.OAException: Application: ICX, Message Name: Could not create the transaction Id for this session. at oracle.apps.fnd.framework.CreateIcxSession.createTransaction(CreateIcxSession.java:520) at runregion.jspService(runregion.jsp:103) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534)
    Few days back it was running successfully after that no setup change has been made.
    Please suggest the reason.
    Thanks in advance for your help.

    Hi ,
    1) Try deleting all the class files and try to run.
    2) If you get another instance dbc file try running the file against the database.
    3) Create a connection to the database from Jdev and Test it, it is working or not,
    Once it get success message, then try to run the page.
    4) Or instead of running the HelloWorld, create your own PG.xml and add a AM and CO and try to run the file.
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • Problem running my class file

    i'm using os x and when i compile my HelloWorld.java i have no errors and it creates the HelloWorld.class file in the same directory. now if i try to run the program from the terminal by typing in
    java HelloWorld it works file, but if i try to send the HelloWorld.class file to any other machine or even open it not using the terminal(finding the file and double clicking it) it won't run.
    Any idea how to make this program stand alone like i would want??
    Thanks

    alright i'll look it up, the little i've done with
    java on windows with textpad i thought i was creating
    a .class that executed from the ms-dos window but
    perhaps something else the compiler did behind the
    scenes to make it executable?Nope.
    java HelloWorldYou're running java.exe. It's taking HelloWorld as its argument, finding the class called HelloWorld.class, taking it as input, and executing its main method through the JVM.
    It's exactly the same thing as if you type Notepad somefile.txt or javac SomeFile.javaThe first word is the .exe or .bat that's running, and the next word is an argument that the program interprets as a file to use as its input.

  • Can't run java .class programs from Windows command line!

    I have tried to get a program that I wrote with the JDK to run from the Windows command line, but it is not working. I typed:
    java HelloWorld
    Where my .class was HelloWorld.class, a compiled java program. I spelled the name correctly (and I am in the correct directory), yet I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    I think something is screwy with windows, but that's just me. Any ideas??

    Likely a CLASSPATH issue - try
    java -classpath . HelloWorldGood Luck
    Lee

  • Strange problem when tried to convert HelloWorld.class..

    Hi friends..
    i've downloaded the Java Card SDK 2.2.1, and i tried to compile HelloWorld application that shipped with its distribution..
    i found strange problem when i tried to convert HelloWorld.class into .CAP, etc.. :(
    I use Windows XP, assume that i've set the Environment Variables needed
    i've compiled the HelloWorld.java into HelloWorld.class..
    the package of of HelloWorld is : com.sun.javacard.samples.HelloWorld;
    and i use this config file :
    -out EXP JCA CAP
    -exportpath .
    -applet  0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1:0x1 com.sun.javacard.samples.HelloWorld.HelloWorld
    com.sun.javacard.samples.HelloWorld
    0xa0:0x0:0x0:0x0:0x62:0x3:0x1:0xc:0x1 1.0and then i tried to run converter script in the Console :
    *C:\java_card_kit-2_2_1\samples>converter -config com\sun\javacard\samples\HelloWorld\HelloWorld.opt*
    *error: file com\sun\javacard\samples\HelloWorld\HelloWorld.opt could not be found*
    Usage:  converter  <options>  package_name  package_aid  major_version.minor_ve
    sion
    OR
    converter -config <filename>
                        use file for all options and parameters to converter
    Where options include:
            -classdir <the root directory of the class hierarchy>
                          set the root directory where the Converter
                          will look for classes
            -i            support the 32-bit integer type
            -exportpath  <list of directories>
                          list the root directories where the Converter
                          will look for export files
            -exportmap    use the token mapping from the pre-defined export
                          file of the package being converted. The converter
                          will look for the export file in the exportpath
            -applet <AID class_name>
                          set the applet AID and the class that defines the
                          install method for the applet
            -d <the root directory for output>
            -out  [CAP] [EXP] [JCA]
                          tell the Converter to output the CAP file,
                          and/or the JCA file, and/or the export file
            -V, -version  print the Converter version string
            -v, -verbose  enable verbose output
            -help         print out this message
            -nowarn       instruct the Converter to not report warning messages
            -mask         indicate this package is for mask, so restrictions on
                          native methods are relaxed
            -debug        enable generation of debugging information
            -nobanner     suppress all standard output messages
            -noverify     turn off verification. Verification is defaultPlease help me regarding this, because i'm new in this field..
    Thanks in advance..

    Thanks safarmer for your reply..
    i tried this :
    C:\java_card_kit-2_2_1\samples>javac -target 1.3 -source 1.1 -g -classpath .\cla
    sses;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard\samples\HelloWorld
    \*.java
    javac: invalid source release: 1.1
    Usage: javac <options> <source files>
    use -help for a list of possible options
    C:\java_card_kit-2_2_1\samples>javac -target 1.3 -source 1.2 -g -classpath .\cla
    sses;..\lib\api.jar;..\lib\installer.jar src\com\sun\javacard\samples\HelloWorld
    \*.java
    it seems that i can't specify the -source to 1.1, so i tried to use -source 1.2..
    after that, i tried to convert again, and i got this error :
    C:\java_card_kit-2_2_1\samples\src>converter -config com\sun\javacard\samples\He
    lloWorld\HelloWorld.opt
    Java Card 2.2.1 Class File Converter, Version 1.3
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to lic
    ense terms.
    error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file fo
    rmat of version 47.0.
    conversion completed with 1 errors and 0 warnings.Please help me regarding this..
    Thanks in advance..

  • Running HelloWorld Servlet--Tomcat 4.1

    Dear Sir,
    With most humble submission I would like to inform you that I have recently downloaded Tomcat 4.1 from http://jakarta.apache.org/ and installed it on Windows 98. I am using jdk1.3
    I am an amateur for Java Servlets. I am following the instructions given in the book "Java Servlet Programming" by O'reilly and according to this book I have to store my class files(I tried with HelloWorld.class) in the dir server_root/webapps/root/web-inf/classes dir. but when i called it from microsoft internet explorer 5.0(the browser i am using currently) using the URL http://localhost:8080/servlet/HelloWorld
    I get the 404 error.
    I also tried to call a static file (.html) by storing it in the dir server_root/webapps/root(according to the book) and i get the proper output but not in case of .class file. Even the example codes provided with the server do not run.
    Please help me to fix out my problem.
    Thanking you in anticipation,
    Yours sincerely
    roopesh

    Hi:
    1)You need set classpath
    2) do you open your Tomcat?
    Thank

  • Erro running HelloWorld.java

    Why comes the
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    thanks

    Either the file HelloWorld.class doesn't exist, or the file can't be found, which is a classpath problem. See these if it's classpath:
    The CLASSPATH is another set of pointers that is used by Java to find the files that you create and want compiled and/or run. This setting is explained here:
    Setting the Classpath:
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/classpath.html
    [NOTE: always start your classpath with ".;" which means the current directory.]
    How Classes are Found:
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/findingclasses.html

  • How to run a class file in MAC os, compiled in XP.

    Hi all,
    i am compiling a java program in windows using JDK 1.5 and i am copying this file to MAC os (Panther). In Mac i am running this class file using JDK 1.4.i am getting the following exception,
    Exception in thread "main" java.lang.UnsupportedClassversion error.
    This is understandable, but is there any solution for this ...
    Any one experienced the same problem ...
    If any one comes up with a solution to solve this, plz let me know...
    Thanks in advance......

    You are compiling it in 1.5 and expecting 1.4 to run it?
    You have two options: compile it at the 1.4 level or upgrade your Mac to 1.5

  • ERROR [code=1] Running adjopy.class

    Hi DBA's
    When i am applying patch 5903765 i got the following error.
    i checked the write permission and owner permission, it seems everyting is fine and I run manually following script, i got the same error.
    adjava -mx512m -nojit oracle.apps.ad.jri.adjcopy @/s03/CLONE/clnappl/admin/CLN/out/apps.cmd
    Kindly help me to resolve the issue.
    =============ERROR=============================
    About to Write undo archive : Mon Mar 16 2009 14:22:33
    Writing undo archive /s03/CLONE/kiranpatches/5903765/backup/CLN/aqherptestdb/java
    ERROR: I/O or zip error while attempting to read entry meta-inf/jdev-ext.xml in zip file /s03/CLONE/clncomn/java
    Error(s) have occurred; exiting with status 1
    AD Run Java Command is complete.
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    AutoPatch error:
    ERROR [code=1] Running adjopy.class
    AutoPatch error:
    Error updating master archive
    Best Regards,
    SG

    SG,
    Please review the following note:
    Note: 376096.1 - I/O or ZIP Error While Attempting To Read Entry meta-inf/jdev-ext.xml
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=376096.1
    Regards,
    Hussein

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

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

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

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

    Please help me ! ! (Beginer Programming)

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

  • Flow of execution of JVM while running a Class

    Unfortunately I have faced an issue when buddy asking about the executing a Class what will be the first loading of Packages from which one.
    This is i have as a issue for long time and I perplexed so much by ruminating about this doubts.Yet now i can't be got a answer for which.
    Utimately I am querying this with u.So plz assist me to find out solution for
    (1)What will be happened after running a Class and what would be loading procedure wisely.
    With Regards,
    Stalin.G

    Not entirely sure what you're asking here - your English isn't the greatest (no offence) - but it seems to be related to the order in which classes are loaded. The first class loaded will be java.lang.Object, but I suspect that the first one explicitly loaded is java.lang.String. You can observe classes being loaded at runtime by running your application with the -verbose switch
    Hope I understood you correctly!

  • Error while running package class

    Hi All,
    I have two java files, one is at c:\java\com\certification\Parent.java and another at c:\java\om\other\Child.java.
    Child is extending Parent.
    I compiled like: c:\java> javac -d . com\certification\*.java com\other\*.java
    And both class files created.
    I am not able to run Child class. I'm runnign using: c:\java> java com.other.Child
    "Exception in thread "main" java.lang.NoSuchMethodError: main" is coming.
    Can anybody help me to solve this.
    Thanks,
    Kari.

    "Exception in thread "main" java.lang.NoSuchMethodError: main" is coming. Check whether the Child class contains the main method with following signature:
    public static void main(String[] args)    Method signature should match!
    Thanks!

  • How can i run Java class form  other java application.

    Hi ,
    I have problem to run java class from my java application,
    I am using the class ClassLoader in order to launched the Java class , it�s work fine whenever, the class exist in the same folder , however , when i am trying to run class that is not in the current folder ,
    i got error (see below),
    Do you have any idea what is wrong?
    java.lang.ClassNotFoundException
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:110)
         at SimpleClassLoader.loadClass(SimpleClassLoader.java:53)
         at Run.main(Run.java:31)

    What does "run an class" mean? You don't run classes. They're not executables.
    I bet your problem is the classpath. You are aware that the classloader looks only there? Unless it's an UrlClassLoader.

Maybe you are looking for

  • Transporter payment

    Hello, The scenario is sometimes payment is to be made on proforma invoice issued by supplier, against letter of credit. how it will happen in sap. urgent

  • About listeners for different databases in the same ORACLE_HOME

    Hello experts, I have a doubt I have installed 3 different databases in the same server which OS is Suse Enterprise 10. At this moment I have just one listener that registers all the services. The number of connections are big for two of the three da

  • Nokia Asha 302 Issue

    How This Method To Change The Display Brightness of Nokia Asha 302? Solved! Go to Solution.

  • ME21N restriction by material types

    Hi We would like to restrict ME21N access by material type. I believe this is possible  by turning on the authorisation check in  SU24 for ME21N transaction for authorisation object M_MATE_MAR and once the relevant material types are maintained throu

  • How to give the CTS of a SE78 object?

    How to give the CTS of a SE78 object? When we import a BMP file from PC  via SE78 then how can I give it the CTS number? Regards, Subhasish