Java Version Checking
I have an application that must have JAVA version 1.4.1 and nothing under that. I am using the System Properties to check for the version.
My question is, Are future releases of JAVA going to have their version numbers formatted in the same way i.e N.N.N, 1.4.2, 1.5.0??
Thanks,
Bruce
I mean, what would you do if the client didn't even have any version
of java at all? I got an idea maybe a ReadMe.txt or .html with instructions on how to use my program.
Are you going to be able to tell them from the software that they
need to install it?Yes, I will simplify the install for them by providing a link or the JRE with my application and run it for them if they want to install it.
Anybody got a sulotion?
Similar Messages
-
Java version checking for IE needed
Hi, Guys,
I need to check the currently used java version in IE.
I used <object> tag
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="https://java.sun.com/update/1.5.0/jinstall-1_5_0_12-windows-i586.cab#Version=1,5,0,12" width=10 height=10>
<param name="codebase" value=".">
<param name="code" value="HelpMe.class">
</param>
</object>
The expected behavior is that : if currently installed java version is less than 1.5.0.12, a popup window will show.
but for java 1.5.0_11, the popup window for download does not show up.
I also tried
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="https://java.sun.com/update/1.5.0/jinstall-1_5_0_12-windows-i586.cab#Version=1,5,0_12" width=10 height=10>
any idea?
ThanksA slightly unrelated observation: when I use the <object> tag, IE 7 with JDK 5 shows this ActiveX warning asking me if I want to let an ActiveX control by Sun run. Since we wanted to minimize spooking out end users with security warnings, we decided to only ever use the <applet> tag which does not cause the (additional) ActiveX warning.
-
How to check Java Version while showing applet in browser?
Hello All,
We have an application which has client and server mechanism.
Our application can be accessed by any internet browser on any machine of the network but there is only one server in the network.
One of the functionality in the application is described below.
We do have one link in our application webpage. When user clicks on that link, the request goes to the server component which is running on different machine. Now server process the request and in responce we do show some images in applet window at the customer webpage.
Now problem is, when the client machine browser has some lower version of Java, we are not able to show the image but only shows a blank page.
What we want to do is to show some specific warning message when we find that the Java version at client machine is lower than required.
Can anybody please let me know how can I achieve this?
Thanks in Advance,
JenishSun's latest versioning solution for applets and JWS apps. is [deployJava.js|http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html]. I also offer the [Java Version Checker Applet|http://pscode.org/jre.html] as an alternate way of ensuring a minimum major version of the JRE.
-
Check and Respond to Java Version
I know this question has been asked a million times before, but is there a way that I can check the version of the JVM that my end user is running and then also print an error message if the user doesn't have an up-to-date enough version of the JVM? I know I can call System.getProperty("java.version") but that returns a String that I would have to parse. Is it possible to get the version any other way? Thanks.
java.exe -version 2>&1 | findstr "java.version.*1[.]5[.]" > nul
if errorlevel 1 (
echo Version Required is 1.5 and the Java on Path is
%JAVA% -version 2>&1 | findstr java.version
exit /B 1
save this code in a batch file and run that batch file -
JNI Program to check java version
Hai,
I want to write one program to get java version using JNI.ie It should show what version is installed.
Thanks in AdvanceYou do not need JNI to do that:
see http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()
System.err.println(System.getProperty("java.version"));
System.err.println(System.getProperty("java.vm.version"));--Marc (http://jnative.sf.net) -
How to check for java version in unix?
hi,can anyone tell me how to find the java versionin AIX unix?
In addition to Annie's answer: if you mean to get it in your code, then do this:
String version = System.getProperty("java.version");
System.out.println("Java version: "+version); -
HT1338 download Java version 10.6.8 and above
Hello
I have a MAC Pro (OZ X 10.6.8). My netbank "log in" service requires the newest version of Java.
Have tryed to download Java 6 again - Have also tryed to download the "7 version", but my Mac dosent accept that (think it was Lion version?).
My netbank is; SR bank, Norway. There is a link on their homepage - but, that dosent help me anything.
I have also checked under
JAVA SE 6 IS THERE, both 64 bit and 32 bit. It is also hooked of (activiate...). THe version I got is: 1.6.0_37-bo6-434 (both).If I am not wrong that is the version my bank requires.
What am bit unsure/conserneded about is if i have the Java version installed (even if I found "Java choice" under programs.
Can you please help me. This has never been a problem before...(it started when Java had a lot of problem)
Kind regards Annie
([email protected])To see if Java is installed (that is, if you haven't disabled it in Java Preferences.app) enter into Terminal in Utilities and hit return.
java -version
If you use Safari, Apple has disabled Java 6 from there. Probably also Firefox and Chrome. -
How to Launch an Integration Builder under two different java versions
How to Launch an Integration Builder under two different java versions 1
1. Situation 2
2. How To Do 2
2.1 jre preparation 2
2.2 Put them into the system 2
2.3 Execute a Java Web Start under jre 1.4.x version 3
2.4 Change Java Runtime Versions 3
2.5 Launch an Integration Builder 6
1. Situation
OS: windows 2000 pro English
Java version: jdk 1.5.x was already installed. (Its not permitted to change.)
I dont have any authorization to install any software on the PC.
But I need to use an Integration Builder.
I already knew URLs of an Integration Builder (http://<hostname>:50000/rep/start/repository.jnlp).
2. How To Do
At this moment, an Integration Builder (XI 3.0) can be launch under jre 1.4.x environment (on windows).
2.1 jre preparation
I download j2re-1_4_2_10-windows-i586-p.exe from http://java.sun.com/j2se/1.4.2/download.html
I installed it on my home PC and copied all files from C:\Program Files\Java\ j2re1.4.2_10\ into my USB.
2.2 Put them into the system
I pasted j2re1.4.2_10 folder from my USB into the windows 2000 pro system.
Finally, I could list up all of javaws.exe under this system.
c:\j2re1.4.2_10\javaws\javaws.exe
c:\Program Files\Java\jdk1.5.0_05\bin\javaws.exe
c:\Program Files\Java\jdk1.5.0_05\jre\bin\javaws.exe
c:\Program Files\Java\jre1.5.0_05\bin\javaws.exe
2.3 Execute a Java Web Start under jre 1.4.x version
I executed c:\j2re1.4.2_10\javaws\javaws.exe .
2.4 Change Java Runtime Versions
Go to File-> Preferences -> Java
As you can see, it indicates 1.5 version.
Click [FIND] button.
Click [NEXT] button.
Click the j2re1.4.2_10 folder.
Click [NEXT] button.
A JRE Finder is able to find javaw.exe automatically. Or you can indicate C:\j2re1.4.2_10\bin\javaw.exe directly.
Click [NEXT] button.
Finally, there are two Java Runtime Versions. Now you need to uncheck the Enabled column of 1.5 version and check 1.4 version.
Click [OK] button.
Well, in the General tab, I selected None for Proxies.
2.5 Launch an Integration Builder
In the Location field, I typed the URL of an Integration Builder jnlp.
http://<hostname>:50000/rep/start/repository.jnlp
SAP Integration Builder comes up inside Applications area.
Select it and click [Start] button.
If you click Environment-> Integration Builder (Configuration), you can launch Integration Builder: Configuration.
[PDF file location] with screenshots
http://SDN.mobilian.org/SDN/How2LaunchIB.rar
===================Advertisement==========================
How do you search SDN?
What about [<b>SDN Search Widget</b>]?
SDN Search Widget
=========================================================I am not getting anywhere with deploying my application or
applet.
I have set up my bc4j project. It contains all my VO info,
links, application module. (proj a)
I then have another project with DbInfo in it(has all my rowset
info), Multiple Frames, and my Applet.java file.
Actually I have an Applet.java file and a Application.java file
because I was seeing if both/either worked. Anyway they seem the
same, except for that extra window that comes up when you run the
applet.
I follow the steps in the oracle directions (from earlier post).
And all seems ok. But at ---->
[*] Select the subdirectory under myhtml where your applet's HTML
file
is located, and enter the directory path of the 'staging'
directory you
created in step 3 above, if different from the default.</li>
[*]Select the HTML files that JDeveloper created to run your
applet.</li>
[*]Select all of the Java source files in your project that make
up the
applet.</li>
I have no HTML file associated with my applet, at least that I
know of.
So do I need to create one, or should it of been done
automatically.
Also, I trying to figure out what will be the best way to deploy
my project. Applet or stand alone application is what my first
choices have been so far. I have read that there is some issues
with applets being served from a different server than the
database. So a stand alone application was my front runner, but
I haven't gotten either way to work yet. -
How to stop version check that happens in the background after timeout?
Hi all,
I have a problem that seriously makes my swing application (installed using webstart) very slow for some time.
Steps to reproduce my problem :
1. Deploy the jars of application in the web server running on Machine A( either in LAN or running on public IP).
2. Download the application on Machine B using the link.
3. Shutdown Machine A.
4. Now try to start the application on Machine B. The starting of the application has become very slow.
After some time(long enough) the application is started. Even now, the application is slow for first few minutes.
Below is the part of jnlp that we used.:
+<?xml version="1.0" encoding="utf-8"?>+
+<jnlp spec="1.0" codebase="$$codebase" href="LaunchMyApplication.jnlp">+
+<information>+
+<title>My Application</title>+
+<vendor>XYZ</vendor>+
+<description kind="short">XXXXXXXX</description>+
+<icon href="../../../../images/myapp_splash2009.gif" kind="splash"/>+
+<icon href="../../../../images/myapp_logo.jpg"/>+
+<offline-allowed/>+
+</information>+
+<security>+
+<all-permissions/>+
+</security>+
+<resources>+
+<property name="abc.type" value="client"/>+
+<j2se version="1.5" initial-heap-size="48m" max-heap-size="256m"/>+
+ +
+ <!-- jar details -->+
+ ...........+
+ ..........+
+ +
+</resources> +
+<application-desc main-class="com.abc.xyz.Login">+
+ <argument>..........</argument>+
+</application-desc>+
+</jnlp>+
My assumsion is
When I start my application, version checking will happen. But the cache server system(machine A) is not available. Due to this initial slowdown has occurred.
After the timeout has occured, my application has started. Since the version checking continuous in the background, my application is again slow.(Even when my application server and database system are in the same LAN of my client machine).
This slowdown is certainly not desirable.
This slowness isn't there when there Machine A( in which my webserver is installed) is running and my webserver (Tomcat 5.0 in my case) is not started.
Is my assumsion is correct?
If correct, how do I stop version checking process that happens in the background after initial timeout?
I think update check and policy attribute may not help me as I wanted to stop this background version check altogether. Also, my java sersion is 1.5_0_14.
Please help me out in this.
Thanks in advance..,
Chakri.Talk to Apple here...
http://www.apple.com/feedback/ -
How to programatically get a Java version (Not default one) ?
Hi, Java Guru,
Does anyone know how to programatically get a Java verstion through its full path ?
For example, there are 5 JVM installed on a user's machine:
JRE1
JRE2
JRE3
JRE4
JRE5
How do you know the Java version under JRE3 ?
From command line, you can simply type
JRE3/java -version
But how to programtically ? (I thought about running a system call, then check the standout, but feel it is not reliable, is there any other way to do it ?)
Thanks in advance.No. That is not waht I want. Using System.getProperties() only can get the default Java information.
Assume there are many Java version installed on a user's machine and we know all java Path.
JRE1/bin/java
JRE2/bin/java
JRE3/bin/java
JRE4/bin/java
JRE5/bin/java
JREn/bin/java
JREn/bin/java is the latest one installed, that is, default Java.
I want to know the JRE3 version before I use it, then how do I know JRE3 version PROGRAMTICALLY ?
Anyway, thanks for response. -
Java Version for PI 7.1
Hi all,
Can anyone please tell me what is the exact recommended JRE version for PI 7.1 with enhancement package1.
thanks in advance
JagruthiHi,
I think PI 7.1 works fine with java version 1.5 and 1.6 (not sure..though)
May be what you can check is un-install the existing Java version (old versions if so) and open the Home page of the PI
it will show the version needed (try this) for PI 7.0 it was showing for me which version to download in google chrome browser...
HTH
Rajesh -
Calling BIP from Oracle Forms: Having Java version problem.
<h3>
Hi,
I tried to call a BIP report through Oracle Forms.
I followed this PDF.
http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
Problem is, when I run the form, I get this error (copied from the Java Console)
Oracle JInitiator: Version 1.3.1.22
Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\channasiriwardena
Proxy Configuration: Manual Configuration
Proxy: 192.168.11.100:81
Proxy Overrides: *.iil.informatics.lk,192.168.11.*,192.168.10.*,<local>
JAR cache enabled
Location: C:\Documents and Settings\channasiriwardena\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0 Forms Applet version is : 10.1.2.0
java.lang.UnsupportedClassVersionError: oracle/j2ee/ws/client/ServiceFactoryImpl (Unsupported major.minor version 49.0)
I am using Forms Forms [32 Bit] Version 10.1.2.0.2.
JDeveloper Version is 10.1.3.5.0.
The Forms 10g Java version is 1.4.
So according to what I discovered on the net, the problem is: My JInitiator is 1.3 using JRE 1.3, BUT my .JAR file is Java 1.5.
Since we are using the Oracle JVM, ticking “Use JRE 1.5..” in the Advanced tab of the Internet Explorer Options has no effect.
We cannot upgrade the Oracle JInitiator to a 1.5 since there is no such JInitiator version. JInitiator is available only up to 1.3.1.30.
What can I do. What if I install Java 1.3 in my machine and re-compile my JAR file with that? Will that work or is there another solution?
Has anybody encountered this problem?
Any help would be greatly appreciated.
Thanks & Regards,
C.S.
</h3>Hi,
Yes, you need to compile your source files with JDK 1.3 (since JInit 1.3.x.x uses JDK 1.3).
Other solution would be to use JRE 1.5 (instead of JInitiator).
Check out [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=550563] on how to use JRE1.5
-Arun -
Hello. I did a system check on my computer for an onlline course I'm taking and it stated that I am running java version 1.6.0_02 annd thhat I need to upgrade to 1.4.2_06 to 1.5.0_08 and/or 1.5.0_10. It seems to me thought that the numbbers are going backward - and this would bbe an error. Does 1.6.0_02 have thhe capabilities of the othher numbers? what does anyone recommend I do?
thanks,
szoThey have a bug in their version check. They didn't make it future proof. A program that can execute on e.g. 1.5 should be able to execute on 1.6
Kaj -
Java version and amount of SAPDATA
Hi!
I would like to install SAP Solution Manager on Solaris Sparc 10 Zone (64 Bit) with Oracle.
Questions:
1) Which Java version applies for the installation? I have installed 1.4.2.12.
2) Is that problem that the <sid>adm user exist already on the server?
Or should I delete these, because thes will be created with SAPINST?
I run Installation as root-user
3) How much SAPDATA do I need for the installation. I would abolish to have more than 3 SAPDATA. So I have 3 SAPDATA, each 70 GB. Is that ok?
Thank you very much!
regards
ThomHi Thom,
1) Which Java version applies for the installation? I have installed 1.4.2.12.
Answer: Please go through the note 716604, and also 1.4.2_12 version for JDK is fine. You can go with this.
2) Is that problem that the <sid>adm user exist already on the server?
Answer : It wont be the problem if it exists,but check the owner and modes as per the guide and change it.
3. should I delete these, because thes will be created with SAPINST?
Answer: Yes,users will be created by SAPINST,but if its already exists, you dont need to delete this. If you dont know the changing of owners or modes for the sidadm user. you can delete, it will create by SAPINST.
4.I run Installation as root-user
Answer: Yes. you have to start installation with root user.
5.3) How much SAPDATA do I need for the installation. I would abolish to have more than 3 SAPDATA. So I have 3 SAPDATA, each 70 GB. Is that ok?
Answer: SAP recommends 4 sapdata's. The size is depends on how much data you maintain in the system. Try to create SAPDATA4 and distrube the size to all 4 sapdata's.
Hope you understand this.
Thanks
Kishore -
Java Georaster API error - wrong java version
Hi all. I've done some searching about but cannot see this question answered (or indeed asked) anywhere else so perhaps i'm the first person to encounter it.
I've got some georaster data from a customer in an Oracle DMP file which i've imported. It all checks out as being valid (using sdo_geor.validategeoraster) but i cannot view it in the Georaster Viewer tool. I wrote some java to extract a piece to a file but i get this error with the select command ...
DEBUG <10:27:51> [GeoRaster] jGeor.getRasterImage(conn,0,600, 1199, 1801, 2400 )
ERROR <10:27:51> [GeoRaster] Failed to getRasterImage() because of a GeoRasterException : -13464;GeoRaster object has float or double data type.
It can be retrieved only with Java version 1.4.1 or higher.
Java version found: 1.5
ERROR <10:27:51> [GeoRaster] stack trace is ...
DEBUG <10:27:51> [GeoRaster] 0 oracle.spatial.georaster.JGeoRaster.getColorModel(JGeoRaster.java:1276)
DEBUG <10:27:51> [GeoRaster] 1 oracle.spatial.georaster.JGeoRaster.getRasterImage(JGeoRaster.java:2568)
DEBUG <10:27:51> [GeoRaster] 2 com.espatial.ps.georaster.GeoRaster.getRenderedImage(GeoRaster.java:736)
DEBUG <10:27:51> [GeoRaster] 3 com.espatial.ps.utilities.TemplateApplicationHelper.testExport(TemplateApplicationHelper.java:294)
DEBUG <10:27:51> [GeoRaster] 4 com.espatial.ps.utilities.TemplateApplicationHelper.main(TemplateApplicationHelper.java:130)If I query the georaster I get this ...
ORCL10GR:SQL> SELECT georaster FROM intermap_iscsi.CORE_DTM g WHERE g.georaster.RASTERDATATABLE = 'CORE_DTM_RDT_01' AND g.georid = 101;
GEORASTER(RASTERTYPE, SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES), RASTERDATATABLE, RASTERID, METADATA)
SDO_GEORASTER(20001, SDO_GEOMETRY(2003, 8265, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(-114.87502, 35.0000208, -114.87502, 34.93
75, -114.87502, 34.8749792, -114.8125, 34.8749792, -114.74998, 34.8749792, -114.74998, 34.9375, -114.74998, 35.0000208, -114.8125, 35.0000208, -1
14.87502, 35.0000208)), 'CORE_DTM_RDT_01', 101, XMLTYPE(<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectI))I'm running my java program with JDK 1.5.0_11 so that error about needing 1.4.1 or higher is odd. Is it to do with the Oracle instance needing that JDK? Anyone got any ideas?
John.Looks like the code is explicitly checking for a specific version of Java without doing a greater than check, you'll have to trick the API
Before you call the JGeoRaster Method, call:
String temp = System.getProperty("java.specification.version");
System.setProperty( "java.specification.version", "1.4.1" );
the after call:
System.setProperty("java.specification.version", temp);
Alternatively, the JGeoRaster library that comes with 11g has a fix for this issue.
Maybe you are looking for
-
Pse 8 for mac: turn off tabs in workspace?
I am finding the tabs across the top of the workspace get in the way when i am using tools and modifying them etc, mousing over the tab to get to the modify options, activates the tab label pop up, which blocks my use of the modifyers -- hope that ma
-
LCM import of Planning Application Hangs with "In Progress Status"
Hi, LCM import of Planning Application Hangs with "In Progress Status" . its already couple of hours. Earlier it was always within 10 mins. Any advise is appreciated. Regards, Vineet
-
Hi All, we are on R12. I am running create accounting in AP, and the SLA program report gives warnings of "A conversion rate does not exist to convert EUR to GBP for the conversion type UK Spot and conversion date 01-DEC-09 for line -2. Please use th
-
Hi, I have a mapping failed with the two error codes. Does anyone know what the cause maybe? Thanks. ORA-12801: error signaled in parallel query server P002 ORA-30563: outer join operator (+) not allowed in select-list The failing happened at a point
-
Hi, have a very big problem with one new iphone 5. In october travel to Chile for work and was the b-day of my husband and buy one iphone 5 in a Movistar market. They tell me that all mobile seller in Chile are Unlock, for this reason buy this mobile