Java compatibility?

I have a few simple questions that Im hoping someone here can answer.
1. Lets say I write a Java program on my home Windows XP computer. Now, I want to take this program and turn it into an "executable" (not .exe, but a file that you can execute by double clicking on it) file, and take it to work with me. How can I do this?
2. If I make a Java file executable, does the computer I run it on need to have some sort of special software in order to run the program?
If anyone can answer these simple questions for me Id really appreciate it.

1. You can make a file that will run by double clicking by using the Java Archive (JAR) tool. Package the class files and other resources of your program into the .jar file. To make it launch by double clicking, it will have to include a manifest file with the attribute "Main-Class: <pathname of class with main method>"
See the java tutorials at java.sun.com for information on how to create .jar files and manifest files. There is a good tutorial that describes exactly how to do this.
2. Any computer you intend to run the program on will need to have a java runtime environment (JRE) installed, available at java.com. The JRE is essentially a computer -- implemented entirely as software -- that executes Java programs.

Similar Messages

  • Mac Java Compatibility with Firefox 4

    I am running Mac OS, with the new firefox 4 I am not getting access to my CCTV server anymore, while the older firefox runs smoothly, the version 4 firefox keeps on asking to install the plugins "Java", but Mac has its own java. Maybe it need to be compatible with the Mac Java plugins, and another thing is the version 4 of Firefox runs slower than the previous version.

    i love channel hoppin on fox tv and not compatable with the new socalled better ff4 please sort it out thanks

  • OIM Java Compatibility Question

    Hi
    We have OIM 9.1.0.2 BP07 deployed in Weblogic 10.3.0 in test env. Our java version is JDK 1.6.0_10. All our adapters are compiled in this version. We are using this version of java since 1 year.
    Now we are moving to production, and we are not able to get exact java version which we used in test env in internet. My question is if I install java which is certified by weblogic 10.3(i.e 1.6.0_05) then will I face any issues in OIM? is it mandatory to use exact version of java from one env to another?
    Thanks

    Does not make any difference with sub versions. The version compatibility comes into picture at a higher level like JDK 1.5 or JDK 1.6.
    Consider the connector development team, they develop connectors on JDK 1.6 (could be any sub version) and when a customer uses that OOTB connector, they can use any of those sub-versions within JDK 1.6.
    Also the fact that if its your custom adapters then you should be aware that what all java functions you are using and I assume it would be the basic ones, so the version difference should not bring in any issues. If its OOTB connector then see the certification matrix as well.

  • Mozilla is lying when it says Java Script is unnecessary for the avcrage user.Java script is not working in Firefox 7.01

    I want to roll back to an earlier version Firefox that works with Java Script how can I do this. Where I can download an earlier version? You know what the problems are. I am NOT going to list them. Own up to your errors. You made an incorrect conscious decision to break with Java compatibility.

    Mozilla is not lying about average users, but it shows contempt for experienced users, or those that want to be able to get the more out of their browser, or use it for work or school.
    Java and JavaScript are not the same thing. I trust you are referring to JavaScript problems and a lot of collateral damage associated with the mess.
    # Prohibition on Webpages being able to resize or move windows with JavaScript
    # Prohibition on Users being able to move or resize windows with JavaScript
    # Ignoring the fact that there were already user controls in Tools > Options > Content > Javascript > Advanced
    # Making JavaScript inoperable from Location bar as a command, or in a keyword shortcut that involves moving resizing windows
    # Destroying use of AwesomeBar search, Bookmark searching for bookmarks containing JavaScript, making internal searches very unreliable
    Firefox 8 comes out November the 8th and it nor later versions show any reversal of this mess.
    Firefox 3.6.* should remain safe to use for some time, as corporate users will not put up with nonsense when they support thousands of users.
    For those that really need an older version of Firefox [ftp://ftp.mozilla.org/pub/firefox/releases releases] (all releases, including 4.0.1 and 5.0) or with the latest of [http://www.mozilla.com/en-US/firefox/all-older.html Firefox 3]. Mac OSX 10.4 users can't upgrade to 4.0.1
    When you reinstall a different version, at the end of the install, don't let the install start Firefox for you, rather exit, and then start Firefox in the normal manner to avoid inadvertently creating and using a new profile without your bookmarks, etc.
    What would be better would be to use multiple versions / profiles at the same time, which is certainly beyond average users, particularly when Mozilla has historically and purposely made such things difficult. But if interested see [http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox Using multiple profiles - Firefox - MozillaZine Knowledge Base]

  • Trying to use a java 32bit program in Arch 64bit

    After giving up some time ago, I decided once more to try to run a commercial 32bit Java application in my Arch 64bit. The same program runs fine in a vm with Ubuntu 64bit. Also, I installed bin32-jre from aur and I messed up the jre.sh and jdk.sh scripts in /etc/profile.d/ and made it work, but then my native Java 64 bit programs won't run.
    To sum up, is there a way to achieve the same Java compatibility that Ubuntu offers? What libs or packages do I have to install and how should I configure them to run every java program, no matter if it is 32 or 64 bit?
    Thanks.

    Awebb wrote:
    Java applications are compiled to bytecode. This bytecode is interpreted by the JRE to run on your specific environment. I don't see how a Java application could be either "32bit" or "64bit". This is the big benefit of Java: Write your code, compile it and run it on every machine that has Java installed.
    Let's try to run your "32bit Java application" on 64bit JRE. What errors do you encounter that make you think you need a different environment?
    Truth is that things are not so simple. This application uses the SWT toolkit for its interface and has other dependencies besides jre (gtk is one for sure). I would be very grateful if you could download the fully functional demo version from here http://www.wordfast.com/zip/2.4.0.1/lin … nux.tar.gz and give it a try. If you can't do that, I can provide some logs. I am sure the problem is not how Java behaves but the way this app is developed and packaged. I have bought a license some years ago, but I still haven't managed to run it properly on any of my Arch machines and I just wait for the devs to take some action on this issue. I have also asked for help, but it seems that they take for granted that their Linux users use distros with mixed libs (like Ubuntu).
    Anyways, thx for your reply.

  • ORA-03113 error when running the Java stored proc demos

    Hi there,
    Has anyone else run into this issue. When attempting to transfer an object type from Java to Oracle - through a Java stored proc - the session crashes with:
    ORA-03113: end-of-file on communication channelLooking in the trace file generated the error message looks something like:
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [0x8fe04468] [SIGTRAP] [unknown code] [0x8FE59034] [] []
    Current SQL statement for this session:
    select pointruntime.jdistance(point(1, 2), point(2, 3)) from dual
    ----- Call Stack Trace -----
    calling              call     entry                argument values in hex     
    location             type     point                (? means dubious value)    
    ksedmp+764           call     ksedst               0 ? 2C4F4A ? 2C ? 98968000 ?
                                                       DB02C ? 27A50000 ?
    ssexhd+956           call     ksedmp               3 ? 0 ? 8FE5E790 ? 5905870 ?
                                                       8FE0434C ? 40895E4 ?
    0x9012c860           call     ssexhd               5 ? BFFEEF70 ? BFFEEFB0 ? 0 ?
                                                       0 ? 0 ?As you can see from the trace snippet above, I was attempting to run one of the Oracle Java stored procedure demos. Has anyone successfully run those demos? Specifically the ones where complex types (table objects or the Point object) are passed back to Oracle from the JVM.
    I would appreciate some help with this. The code works fine in a Windows or Solaris environment but barfs on Apple. Truly annoying....
    Anyone?
    Thanks in advance,
    Alex

    Yes,
    Apologies for not stating that information, Steve. Was a bit naughty of me! I guess the reason I didn't was because I just wanted to hear if anyone else running Oracle on Mac received such errors when executing the Java stored proc demos (specifically, the execution of PointRuntime.jDistance). Nevertheless, here's the relevant info from the trace file:
    Dump file /Users/oracle/admin/sandbox/udump/sandbox_ora_1861.trc
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
    ORACLE_HOME = /Users/oracle/product/10.1.0/db
    System name:     Darwin
    Node name:     maczilla.local
    Release:     8.3.0
    Version:     Darwin Kernel Version 8.3.0: Mon Oct  3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC
    Machine:     Power Macintosh
    Instance name: sandbox
    Redo thread mounted by this instance: 1
    Oracle process number: 10
    Unix process pid: 1861, image: [email protected] for the Java version, according to the readme file in the javavm directory, I am running 1.4.1:
    1.5  Java Compatibility
    This release has been thoroughly tested with Sun's Java Compatibility
    Kit for the JDK 1.4.1. Oracle is committed to OracleJVM keeping pace
    with Java and other Internet standards.

  • SUN compatable  JRE 1.4 required  FOR HP-UNIX 9000 /800 .... PLZ

    Hi Form
    Can somebody tell me where to find Sun Java Compatable JRE 1.4
    installation for HTP-UNIX 9000 / 800.
    I could not find the same on google /yahoo search
    Please help me
    with regards
    Karthik

    Can somebody tell me where to find Sun Java Compatable JRE 1.4 installation for HTP-UNIX 9000 / 800.
    I could not find the same on google /yahoo searchWe don't care what hardware you've got, only the OS (version) matters.
    The very first hit of Google [ [url=http://www.google.com/search?q=hp+java]hp java ] is this URL.

  • Java course on a Mac

    Can i take this course using a Mac?

    Your Model & Other Details profile information says iMac G5/Intel. If you mean to say you have both an iMac G5 and Intel that's one thing that could be clearer. If you think iMac G5s are Intel, you are mistaken. There is this user tip that explains the difference as it relates to Mac OS X 10.6 compatibility:
    http://discussions.apple.com/thread.jspa?threadID=2126451
    And thus how it relates to Java compatibility:
    http://developer.apple.com/library/mac/#technotes/tn2002/tn2110.html
    That said, if your machine is 10.6 compatible, and not able to run with the latest Java the application, you can run Windows on your machine using one of these solutions*:
    http://www.macmaps.com/macosxnative.html#WINTEL
    without a speed hit. Some older solutions are available to G5 machines, but they are harder to find and significantly slower when running Windows.
    Apple has no "conflict" with Java. It is Microsoft which does. Java was designed as a platform agnostic system. Microsoft corrupted it by adding ActiveX plugins which only run in Windows. Microsoft won't port ActiveX to the Mac. So your tech's viewpoint that Apple has a conflict with Java is only saving their own skin, because they probably don't want to learn the open system that Java is.
    - * Links to my pages may give me compensation.
    Message was edited by: a brody

  • Compiz / XGL / AIGLX problem in Java ( specially in Mustang )

    Hi, i would really like to hear from Sun Microsystems about what are they doing about the integration for Compiz/XGL/AIGLX. The current XToolKit does not work, and the MToolkit has some notable problems, specially with JDK6 ex. when using Netbeans or any other app you will loose completely any response to keyboard actions after few minutes of work. Compiz i growing very fast i would like to see my whole development and user apps work while using Compiz. The workarounds do not satisfy such an advanced java developer like me. Does someone know of any official statement by Sun that relates to the Compiz technology and Java compatibility.

    I hope that Sun will solve this problem as soon as possible.

  • Is Java Compatible with Pocket PC 2003

    Hello!
    Can anyone answer this Question?
    Can I run Java code(Servlets, JSP) in the Microsoft Pocket PC 2003 OS.

    dear,
    Java is not only Servlets and JSPs. I wonder why some one will need to use pocketpc as web server.???
    As far as the question of java compatibility with PPC is concerned, You know java is hardware and plateform independent, you need a virtual machine that can translate byte code into plateform specific executeable.
    ...So is the case with PocketPC 2003 as well.
    regards
    -fatbrain73

  • Error in Installation of EPM 11.1.1.3 in windows server 2003-32 bit, AMD 64

    Hi All,,
    We are trying to install EPM 11.1.1.3 ( We are trying to install only Client Components ) in server machine( Processor AMD64, OS: Windows Server 2003 32Bit) we are installing the JAVA 1.6 Also.But we double Click the InstallerTool.cmd it will open the command prompt and throws an error below and disappearing.
    "R:\essbase\\jre\win32\1.6.0\"\..\..\..\installTOOL.jar
    >
    R:essbase>endlocal
    R:essbase>pause
    Press any key to continue...
    This is an error while double click the Installertool.cmd
    If it is Java Compatibility, how can we resolve it.
    We are trying to another XP machine with the same dump it is working
    But in Windows Server machine it is not working.
    For installation of client components only, is Java 1.6 installation is required??
    Could you pls help me What is the Problem
    It will graetful appreciate to resolve it
    Thanks in Advance.........

    Hi
    1. Did you delete tmp and cache after patching
    2. Did you clear the cached files in your browser post patching
    3. Generally the first time you access the system it takes time but the consquent attempts should not take much time.
    4. Did you increase the Java heap
         ex: HFMWeb
    HKEY_LOCAL_MACHINE\SOFTWARE\Hyperion Solutions\HFMWeb0\HyS9FinancialManagementWeb_epmsystem1
                    JVMOption21 | - Xms2048m
                    JVMOption38 | - Xmx2048m
    Next,
    When you are accessing the HFM Application please monitor the task manager and let us know the CPU and Physical Memory utilisation.Monitor the HSVDatasource.exe process .
    How much RAM do you have on your server and how many applications/components are hosted on that server?
    Thanks
    Anjum

  • How to include timestamp function in jdk1.5

    This information is given in the java compatibility. we are facing the same problem when running an open source program(from the source at dbports).
    "JDBC - As of 5.0, comparing a java.sql.Timestamp to a java.util.Date by invoking compareTo on the Timestamp results in a ClassCastException. For example, the following code successfully compares a Timestamp and Date in 1.4.2, but fails with an exception in 5.0:
    aTimeStamp.compareTo(aDate) //NO LONGER WORKSThis change affects even pre-compiled code, resulting in a binary compatibility problem where compiled code that used to run under earlier releases fails in 5.0. We expect to fix this problem in a future release. "
    how can i embedded this timestamp function into jdk5.0, if any body know plz help me out.

    Click on the button beside the address field that says TO and select BCC instead.

  • Can you invoke this web service ??

    I'm getting a Java Compiler error when trying to invoke the
    following dummy web service (CF 6 and 7)
    http://neorecormon.saatchi.com.au/stage/Patient.asmx?wsdl
    The WSDL appears to vaildate ok on mgateway. It seems to be a
    CF specifc issue. If anyone can get it going in their CF
    environment please let me know. Assuming there's nothing I can do
    at my end, I'm not sure what advice I could give the developers of
    the web service that might help them overcome what seems to be a
    .Net / Java compatibility issue.
    Any suggestions would be appreciated.

    Works OK here with their HTTP interface (they have SOAP, HTTP
    GET, and HTTP POST). Try, for example, CFHTTP (or just from
    browser):
    http://neorecormon.saatchi.com.au/stage/Patient.asmx/GetPatientList?PhysicianID=1
    Didn't try CFINVOKE since it is not needed here.

  • Smc fails after patching

    Good evening
    Running a freshly installed 11/06 build of solaris 10 x86, I don't have any issues with smc. Immediately after patching, installing all recommended patches, smc so longer starts up.
    bash-3.00# smc
    Warning: Cannot convert string "-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct
    Warning: Unable to load any usable ISO8859-1 font
    Warning:
    Name: FONTLIST_DEFAULT_TAG_STRING
    Class: XmRendition
    Conversion failed. Cannot load font.
    Java Accessibility Bridge for GNOME loaded.
    java.lang.InternalError: java/langNullPointerException
    at sun.awt.motif.MComponentPeer.pSetFont(Native Method)
    at sun.awt.motif.MComponentPeer.setFont(MComponentPeer.java:247)
    at sun.awt.motif.MWindowPeer.init(MWindowPeer.java:116)
    at sun.awt.motif.MFramePeer.<init>(MFramePeer.java:58)
    at sun.awt.motif.MToolkit.createFrame(MToolkit.java:231)
    at java.awt.Frame.addNotify(Frame.java:491)
    at java.awt.Window.addNotify(Window.java:462)
    at java.awt.Window.show(Window.java:514)
    at com.sun.management.viper.console.gui.VSplashScreen.show(VSplashScreen.java:166)
    at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.openConsole(BaseConsoleOptionsManager.java:746)
    at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.redirectToConsole(BaseConsoleOptionsManager.java:648)
    at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.launchConsole(BaseConsoleOptionsManager.java:173)
    at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.main(BaseConsoleOptionsManager.java:861)
    I'm guessing that something got horked up during patching, however, I'm not really sure which one(s) might have done so. Anyone have any ideas?
    -Matt

    I'm more familiar with the similarly-named Sun Management Center, but I think this may be a Java compatibility issue: possibly the patched version requires a later version of java. It would help to know which version's in your environment (java -version).

  • Using DTO Factory causes error in deploy

    I am trying to deploy a test application on Oracle9iAS 9.0.3 utilizing the Session Facade design pattern. I have been trying to implement the DTO Factory as a plain Java class in my EJB JAR file and think this might be causing the problem.
    First, when I read from "EJB Design Patterns", Floyd Marinescu, pg. 28 it says:
    "When used behind a session bean facade, the DTO factory can be implemented as a plain Java class that simply stores creation/consumption logic for different data transfer objects in its methods."
    As I am using the session bean facade, I was going to implement the DTO factory as the plain Java class as it states. Also, of course, the DTO classes themselves are plain Java classes.
    When I try to deploy the application I get the following error:
    Deployment failed: Nested exception Root Cause: Syntax error in source. Syntax error in source
    Now, my question is three-fold:
    1) Is it due to using plain Java classes in my EJB JAR that I am receiving this error?
    2) Can these plain Java classes located in my EJB JAR truly call the local interfaces for my entity beans?
    3) Does 9.0.3 not support any of the above?
    As I can't deploy my application, I am a touch confused by what is causing this error. I have seen it before in conjunction with 9.0.2 when my heap size was too small, but have adjusted this so this cannot be the cause. Besides, I am not trying to run anything else on this instance of the app server other than the example.
    I will tag this on...about every 4 of 5 times I try to restart the OC4J instance (using the EM website) I get this error:
    An error occurred while restarting. The opmn request has failed. From opmn: HTTP/1.1 204 No Content Content-Length: 0 Content-Type: text/html Response: 0 of 1 processes restarted. Check opmn log files such as ipm.log and ons.log for detailed.
    Any help would be truly appreciated. Thanks!

    Hi Alex,
    Now, my question is three-fold:
    1) Is it due to using plain Java classes in my EJB
    JAR that I am receiving this error?No, unless there is a problem in your POJOs (Plain Old Java Class)
    2) Can these plain Java classes located in my EJB JAR
    truly call the local interfaces for my entity beans?No. But the EJBs can call the POJOs
    3) Does 9.0.3 not support any of the above?No, 9.0.3 does support the above.
    It appears that there is a problem in your code somewhere. It may be due to a java compatibility mismatch. By default, OC4J supports java version 1.3.1. Perhaps your POJOs rely on java version 1.4.x?
    When you deploy, OC4J builds and compiles classes that implement the EJB interfaces. I think the error you describe is due to the fact that this part of the deploy process is failing (i.e. the compilation part). This implies that there may be a problem in one of your EJB interfaces.
    Perhaps if you posted the entire error message and stack trace you are getting, I may be able to offer more.
    Good Luck,
    Avi.

Maybe you are looking for

  • Session timeout and Custon login module

    Hi, Dev Platform: Jdev 10.1.3.4.0, Oracle 10.2.4 I'm trying to trap the session timeout and display a page. I'm using the code below from Frank Nimphius. I've also provided a console log of what is happening when the application times out. Instead of

  • Blue Screen + Spotlight error message... I can't reboot!

    Hi All, Upon startup, iMac with 2+GB RAM running OS X 10.5.6 does the following: 1. Normal startup chime 2. Blue screen appears 3. Spotlight error message "Spotlight quit unexpectedly" I can't reboot, or boot in Safe Mode or launch Disk Utility from

  • Taking time to execute if where clause have  parathesis

    SELECT t0.CONVICTION_ID, t0.JDO_CLASS_TXT, t0.CONVICTION_CD, t0.CONVICTION_DT, t0.CONVICTION_DESC_CD, t0.CONVICTION_LEVEL_CD, t0.DRIVER_ID, t0.HIST_NUM, t0.LAST_UPD_DT, t0.REPORT_ID, t0.SOURCE_CD, t0.APPEAL_END_DT, t0.CASE_NUM_TXT, t0.CGI_VIOLATION_C

  • Cant open any files in connected drive

    Hi,  I am brand new to connected drive.  I can see all my files (pictures, videos,etc.) in the home screen but when i click on one it wont open.  I just get a "sorry, cannot open....".   All the files also appear faded.   Thank you in advance for any

  • Why interface for nodes? but class for UI Elements

    Hi Experts,                 why in wda ,sap has given interface for nodes and elements ,and class for ui Elements. Eg. for using nodes they provide if_wd_context _node       but for input field they provide cl_input_field Any Body Having an idea pls