CommPortIdentifier and JRE1.6

Hi
I have built an applet,signed all the jars it uses and when i print out a debug line in the CommPortIdentifier class, the part where it lists the available ports, it returns false. This leads me to believe that for some reason the CommPortIdentifier class can't find any ports.
Just for development reasons i have set the permission in the java.policy file to this,
grant {
  permission java.security.AllPermission;
  permission java.util.PropertyPermission "*", "read,write";
  permission javax.comm.properties "*","read";
  permission java.awt.AWTPermission "accessEventQueue";
};and in my applet right int he begining i have
System.setSecurityManager(null);
      ...........So my question is:
"Am i missing a step (Security or Code wise) in getting the CommPortIdentifier class to get a list of my available ports?"
Thnx

Ok solution.....to my problem anywayz, :)
i googled javax.comm.properties , since i couldn't find the file anywhere else and it came up with this
http://www.fms.indiana.edu/time/files/javax.comm.properties
Thats the actual file. So just make a file called javax.comm.properties and stick that file in the
C:\Program Files\Java\jre1.6.0_01\lib (or wherever you JRE is installed)
directory u might have to copy the win32com.dll somehwere in there too, i dunno, i'm too excited to find out teh exact workings of it so far, lol.
As soon as i have it all figured out i will post back here. But now i have an applet that can read a serial port
Thanks to all who have helped me get to this point, from the signing applet part to here, :)
Any questions, i'll be glad to help i know how frustreating it can get, :)
Smilies all round
:) :) :) :)

Similar Messages

  • Using Forms 10.1.2.3 and JRE1.6.0_10, web.show_document pops window behind

    Hello everyone, we are using Forms 10.1.2.3 and JRE1.6.0_10. We have separateFrame=true. We noticed when we open another browser using web.show_document('xxxx','_blank'), for example to our online help, the window pops behind the Forms MDI window. In previous versions of java it always popped in front of it like you would expect. We are using XP and IE7. It also acted the same way on Vista with IE7 as well. Has anyone else encountered this or found a workaround?

    As far as the dll goes, our dll is written in C and uses I guess windows api calls to start whatever task we need. (I didnt write it). As far as the forms code goes, we use the webutil_c_api calls. Here's a sample of the function I call from forms:
    FUNCTION StartTask ( pStartin varchar2, pCommandline varchar2, perrormessage in out varchar2) return number IS
              StartIn varchar2(255) := pStartIn;
              Commandline varchar2(1000) := pCommandline;
              Errmsg varchar2(2000):='$$';
         rc pls_integer;
              f_handle WEBUTIL_C_API.FUNCTIONHANDLE;
              args Webutil_c_api.parameterlist;
              param1 Webutil_c_api.ParameterHandle;
              param2 Webutil_c_api.ParameterHandle;
              param3 Webutil_c_api.ParameterHandle;
         begin
              --debuglog('calling StartTask local');
              f_handle := WEBUTIL_C_API.register_function('ClientUtils.dll','StartTask');
              args := WEBUTIL_C_API.create_parameter_list;
         param1 := WEBUTIL_C_API.add_parameter(args,WEBUTIL_C_API.C_CHAR_PTR
              ,WEBUTIL_C_API.PARAM_INOUT,StartIn, 255);
              param2 := WEBUTIL_C_API.add_parameter(args,WEBUTIL_C_API.C_CHAR_PTR
              ,WEBUTIL_C_API.PARAM_INOUT,Commandline, 1000);
              param3:= WEBUTIL_C_API.add_parameter(args,WEBUTIL_C_API.C_CHAR_PTR
              ,WEBUTIL_C_API.PARAM_INOUT,Errmsg, 2000);          
              rc := WEBUTIL_C_API.Invoke_Int(     'ClientUtils.dll','StartTask',args);     
              perrormessage := WEBUTIL_C_API.GET_PARAMETER_STRING(args,param3);
         WEBUTIL_C_API.Destroy_Parameter_List(args);
         WEBUTIL_C_API.Deregister_Function(f_handle);                                                                                
         return rc;
         END;

  • Why i can't swtich java console version between Jre1.5.06 and Jre1.3.06??

    Had installed the jre1.3.06 and Jre1.5.06, but i can't switch to load java console of jre1.3.06 after installed jre1.5.06.
    I disable the jre1.5.06 option in IE's advanced option, and enable the jre1.3.06. IE still loading jre1.5.06 even the registry is changed
    HKEY_CLASSES_ROOT\CLSID\{08B0E5C0-4FCB-11CF-AAA5-00401C608501}\TreatAs
    {08B0E5C0-4FCB-11CF-AAA5-00401C608501}
    value: {CAFEEFAC-0013-0001-0006-ABCDEFFEDCBB}
    Can anyone tell me the why and solution? Addition, i cannot have problems between Jre1.3.06 and Jre1.5.02.

    I also had a problem a little bit same as your problem, I'd installed the Jre1.3.06 and 1.5.06, when I uninstall the 1.3.06 version, I still can see when I check "java -version" is 1.3.06. And I can't run any on 1.5.06 version script and class...

  • What are the latest supported versions of JDK1.4.1 and JRE1.4  on Windows

    Please tell the latest supported versions of both JDK1.4.1 and JRE1.4.1 on Windows 2003.
    If no support is there for 1.4.1 versions then are there any higher versions.
    we have to port the application from Windows2000 to windows2003. On win2000 it runs fine on JRE1.4.1.
    But on Windows 2003 it is running properly on jre included in JDK1.4.1 but not on JRE1.4.1.
    What can be the reason for it ? Does win2003 supports JRE1.4.1?

    You didn't say why it isn't running.
    The most likely reason is that there is an environment problem.
    If you have the same versions of the JDK and JRE then the JRE in the JDK is exactly the same as the standalone JRE.
    It could be that it is also using OS specific stuff, like JNI and/or Runtime.exec().

  • Oracle 9i and JRE1.4.2.10 classes

    after an unsuccessful attempt to use the DBMS_OBFUSCATION_TOOLKIT DE3Decrypt routine to decrypt encrypted data saved by Java program (using javax.crypto and sun.misc), I am trying to import those classes into ORACLE 9i and call the Java APIs from PL/SQL ; the classes being used are from JRE1.4.2.5 and are from the javax.crypto.* and sun.misc.* packages ; so I am trying to use the loadjava utility to import the classes into an ORACLE schema...and getting errors ORA-29521 (example -- referenced name java/lang/AssertionError could not be found) and also ORA-29545 (badly formed class) ; can I import classes from JRE1.4.2.5 into Oracle 9i? what version of JVM does Oracle 9i have? thank you so much for your help!

    Hi sabraha:
    AFAIK the JDK included into JVM is:
    9i 1.3
    10g 1.4
    11g 1.5
    But I am not complete sure because my experience with 9i was a long time ago.
    So you need a javax.crypto package compiled and compatible with JDK 1.3, or better than this upgreade to 11g which Java support is really really fast :)
    Best regards, Marcelo.

  • Installed jre1.7.0_04 and jre1.7.0_05 but no javac

    Hello,
    I recently installed Java on a SuSE 64 bit Linux box. I tried both with: jre-7u4-linux-x64.rpm and with jre-7u5-linux-x64.tar.gz. In both cases I was unable to find the "javac" command to compile my programs.
    Has this command become deprecated ? If so what is the new command to compile a java program. This is what I have in my /usr/java/jre1.7.0_05/bin directory:
    total 428
    drwxr-xr-x 2 uucp 143 4096 May 16 02:38 .
    drwxr-xr-x 6 uucp 143 4096 Jun 13 20:37 ..
    lrwxrwxrwx 1 uucp 143 8 Jun 13 20:34 ControlPanel -> jcontrol
    -rwxr-xr-x 1 uucp 143 7630 May 16 02:37 java
    -rwxr-xr-x 1 uucp 143 19320 May 16 02:38 java_vm
    -rwxr-xr-x 1 uucp 143 98264 May 16 02:38 javaws
    -rwxr-xr-x 1 uucp 143 6395 May 16 02:38 jcontrol
    -rwxr-xr-x 1 uucp 143 7829 May 16 02:37 keytool
    -rwxr-xr-x 1 uucp 143 8021 May 16 02:37 orbd
    -rwxr-xr-x 1 uucp 143 7861 May 16 02:37 pack200
    -rwxr-xr-x 1 uucp 143 7877 May 16 02:37 policytool
    -rwxr-xr-x 1 uucp 143 7829 May 16 02:37 rmid
    -rwxr-xr-x 1 uucp 143 7829 May 16 02:37 rmiregistry
    -rwxr-xr-x 1 uucp 143 7845 May 16 02:37 servertool
    -rwxr-xr-x 1 uucp 143 8053 May 16 02:37 tnameserv
    -rwxr-xr-x 1 uucp 143 219624 May 16 02:37 unpack200

    Moderator Action and Comment:
    This post was originally posted to the Generic Linux.
    It is now relocated to the JRE forum, hopefully for closer topic alignment.
    Just a guess, but you installed a JRE, when (maybe) you needed to install a JDK.
    ... again, that's just a guess.

  • Invoking XSLT from the Command Line with JRE1.4 and JRE1.5

    When I invoke XSLT from the Windows Command Line with "java.exe org.apache.xalan.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" it worked fine with JRE1.4.
    Then I installed JRE1.5.0_09. The class "org.apache.xalan.xslt.Process" was moved to "com.sun.org.apache.xalan.internal.xslt.Process". But when I call it with "java.exe com.sun.org.apache.xalan.internal.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" I get the error "Exception in thread "main" java.lang.NoSuchMethodError: main". When I look into the Process class there is no "main", but a "public static void _main(String argv[])".
    The "JAXP Compatibility Guide for the J2SE Platform, versions 1.4 and 1.5" on "http://java.sun.com/webservices/docs/1.6/jaxp/JAXP-Compatibility_150.html" chapter "Invoking XSLT from the Command Line" claims it should work.
    Is there no more chance to invoke XSLT from the Windows Command Line? Why is "main" renamed to "_main"? Is the documentation wrong or is this a bug?

    When I invoke XSLT from the Windows Command Line with "java.exe org.apache.xalan.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" it worked fine with JRE1.4.
    Then I installed JRE1.5.0_09. The class "org.apache.xalan.xslt.Process" was moved to "com.sun.org.apache.xalan.internal.xslt.Process". But when I call it with "java.exe com.sun.org.apache.xalan.internal.xslt.Process -IN OldFile.xml -XSL StyleSheet.xsl -OUT NewFile.xml" I get the error "Exception in thread "main" java.lang.NoSuchMethodError: main". When I look into the Process class there is no "main", but a "public static void _main(String argv[])".
    The "JAXP Compatibility Guide for the J2SE Platform, versions 1.4 and 1.5" on "http://java.sun.com/webservices/docs/1.6/jaxp/JAXP-Compatibility_150.html" chapter "Invoking XSLT from the Command Line" claims it should work.
    Is there no more chance to invoke XSLT from the Windows Command Line? Why is "main" renamed to "_main"? Is the documentation wrong or is this a bug?

  • Jre1.2.2 and jre1.3 on solaris 6. Possible?

    We have solaris 6 and have a requirement to install jre1.3 to run an appserver. Current programs use jre1.2.2. These programs would like to continue using jre1.2.2. Any one know of any issues with this?
    We would have to install the required patches for 1.3 on 2.6 but aside from that any issues?

    Hi,
    Ideally, there should be no problems if the App Server vendor has certified it with JRE 1.3. You can install JRE 1.3 in seperate directory and use it only for the App Server. If you find new issues, please report them to Bug Parade on http://java.sun.com
    Regards,
    --Sun/DTS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem

    I have tried the Security Realm of Tomcat. Since I do not have
    an LDAP server, I decided to use the Tomcat-users.xml file in
    Tomcat\conf directory.
    I added the following lines of code in the web.xml file.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>webviewer</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
    </login-config>
    The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
    <tomcat-users>
    <user name="test" password="password" roles="webviewer" />
    </tomcat-users>
    So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
    But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
    Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
    URGENT HELP NEEDED ... I need to get back to my client on this.
    Help would be v. much appreciated.

    In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
    Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
    Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept).

  • Oracle froms and jre1.6

    Hello,
    Can anyone tell if suns jre1.6.0_14 is certified for the oracle forms applications 10.1.2.3?
    I found out that jre1.6.0_04 is certified but are the later release of jre1.6.0_xx also certified?
    thx in advance.

    You may want to ask in the correct forum. http://forums.oracle.com/forums/forum.jspa?forumID=19
    Correction - should be http://forums.oracle.com/forums/category.jspa?categoryID=19
    In general with Java, if the last 2 digits (_nn) are higher than required, they are considered compatible. So the implication is 'yes' - but this is still the wrong place to ask.
    <Ignore mode=on forum=this/>
    Edited by: Hans Forbrich on Sep 10, 2009 7:23 AM

  • XMII v11.5.3 and JRE1.6

    For xMII v11.5.3, doco suggests clients should have JRE 1.4.2_13 to 1.5.0_06. 
    However, is JRE 1.6.0_* OK on the client side?  (Note: xMII server runs 1.4.2_13).

    Kevin,
    It has never been tested and you can do so at your own risk.  I know some people are running it and have not noticed any problems but everyone is different.  If you do try it out please give a update if you had any problems.
    Regards,
    Erik

  • Pack() method behaves differently with JRE1.5 and JRE1.6?

    Any diffrence in pack() in JRE 1.5 and JRE 1.6.

    Why don't you look for yourself. Get the file containing the pach() method from both JDK 1.5 and 1.6, and compare.

  • Managing JAVA JDK and JRE with Package Management in Solaris 11.1

    I want to manage Java JDK & JRE in an Solaris environment using Package Management I'm currently running Solaris 11.1 in a VMWare host. My current latest Java release is JDK1.7.0_07 and JRE1.7.0_07. I want to upgrade to JDK1.7.0_17 & JRE1.7.0_17 using Package Management. I've tried on several occasions to upgrade to latest release of Java but I have not been successful. Each time I try using the Package Management GUI or use command line they appear to be successful but the new release does not show.
    What could I be doing wrong?
    Thanks

    I also learned that the READMEs for the following patches in My Oracle Support also describe the downgrave process:
    Patch 18362676: JAVA 6 DOWNGRADE INCORPORATION FOR ORACLE SOLARIS 11.1.15.4.0 AND 11.1.16.5.0
    Patch 18362686: JAVA 7 DOWNGRADE INCORPORATION FOR ORACLE SOLARIS 11.1.15.4.0 AND 11.1.16.5.0
    -- Alan

  • How to Set up the  variables and others to compile and Run Java Programs

    Hello,
    I have just downloaded the jdk1.6.0_07 and jre1.6.0_07 and installed it in C:\Program files\Java in my Windows XP ,So please tell me how to sett up the enviroment variables etc to compile and run Java Programs from Command Prompt.
    thanks

    To set the PATH permanently, add the full path of the jdk1.6.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.6.0_<version>\bin. Set the PATH as follows on Microsoft Windows:
    1. Click Start > Control Panel > System on Windows XP or Start > Settings > Control Panel > System on Windows 2000.
    2. Click Advanced > Environment Variables.
    3. Add the location of bin folder of JDK installation for PATH in User Variables and System Variables. A typical value for PATH is:
    C:\Program Files\Java\jdk1.6.0_<version>\bin

  • JDBC Thin Drivers and Tom Cat Compatibility Error

    I tried to use thin drivers in JDK 1.4 and Oracle 9i. The Oracle 9i has got a jar file named classes12.jar.
    i usually compile my .java files with the command:
    javac -classpath D:\oracle\jdbc\lib\classes12.jar <nameOfFile.java>
    the same is run in the console by the command
    java -classpath D:\oracle\jdbc\classes12.jar; <nameOfClassFile>
    I am giving the entire code that I want to compile and run below.
    The problem thing I am facing is ..... When even I try to start TOMCAT v5.0 I have to close the TSNListener of Oracle 9i and let the Oracle database only running. But when I request for a execution of a servlet that uses the class file, it gives an error. Telling ClassNotFound. If I add up the classes12.jar file in the classpath then tom cat does not run properly.
    So may anyone help me out of the situation of how to use the thin drivers, compile and run servlets and jsp's in TomCat v5.0.
    If not the solution of my above problem, then I want to know how can I use the Thin Drivers and implement a MVC architechture using TOMCAT and JDK1.5 and JRE1.5

    Where did you add the classes12.jar file reference in Tomcat?
    You need not add it to classpath. Just drop the jar file into the path":
    <TomCatInstallDir>\common\lib
    Tomcat loads all Jars inside this folder and then uses it for Runtime. It does not look at your machine's Classpath attribute

Maybe you are looking for

  • Cannot use wifes email account to enter apple account

    I just bought my wife an Ipad Mini. Trying to set it up. I do not know if she has a an account with Apple. When I try to enter her email address with her name I get this: "This email address is not available for use as an Apple ID. You may already ha

  • How to remove old Class in Material master?

    Hello SAP gurus, A class has been assigned to one material and now my requirement is assign a new class to the material. Now the issue is after assign the new class while using the material in an order all the characteristic (from old and new class)

  • Can't Check Mail Manually

    I searched all over for the answer but can't find it, so i am hoping i hasn't been posted before.  Basically I want to only have Mail check my mail when I ask it to.  For years I had it set up to check every minute and I was happy with that.  But in

  • Incorrect currency updation in BPEJ table

    i am Trying to update BPEJ table through bapi 'AIS2_EXTERN_UPDATE_CO' by passing mexican currency equivalent to 1$, but while updating the BPEJ table mexican currency is updated properly but USD is updated incorrectly, For Example if i am passing 11.

  • Nokia C3: No night mode for camera

    I just got the nokia C3 and just realize that it does not have a flash for night pictures or even dark rooms, no memory card and no usb cable quite unlike my N72 that came with everything. What do i do, i have always loved nokia and the phones i have