Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Java Applet executed by IE 7 browser

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java Applet executed by IE 7 browser

    I have had experience in coding with old programming languages only.

    My colleagues are using IE 7 in Win XP (32 bit) PCs environment to access an application system, and the application system which was developed with JBOSS technology is currently running in a J2EE architecture.

    Now, when sending a html page to the application system/server by IE 7, there is a need to access a dispensing machine which can be controlled by sending commands to it via a serial communication port. It means that each PC will have it's own dispensing machine, and it is expected to write commands to the appropriate serial communication port for controlling purpose.

    I'm performing a preliminary exploration of an appropriate solution. The initial thinking is to consider a JAVA applet for the client PC. I search a lot in the internet, but I cannot find an explicit answer. Can somebody confirm whether IE 7 can execute server-side program which can pass parameters to the JAVA applet & then activate it. If yes, I find two libraries for accessing serial port in the internet, namely JSSC (Java Simple Serial Connector) and JavaComm (RXTX). Which one should I use for programming ? what other issues should be considered by us during the development and implementation stages ? What other references should be read by me ? I study a book, and it informs me that the developed applet should be digitally signed with certificate by tools such as JarSigner tool. Is it correct ?


    Thank you for your help in advance.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Java Applet executed by IE 7 browser

    You can do port communications directly via java: Trail: Custom Networking (The Java™ Tutorials) , the code responsible for the communication can be included within an applet to let the applet communicate to a remote server - the applet must be signed

  3. #3
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Java Applet executed by IE 7 browser

    copeg, wouldn't the applet need to be set to all-permissions as well? I don't think the sandbox mode has access to the computer's ports.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Java Applet executed by IE 7 browser

    Quote Originally Posted by aussiemcgr View Post
    copeg, wouldn't the applet need to be set to all-permissions as well? I don't think the sandbox mode has access to the computer's ports.
    Good question. I'd be the first to label my experience with applets antiquated, and it seems the specs may have changed regarding security restrictions since my last applet project. I'll refer the OP to the following pages, which have more up to date and detailed descriptions regarding signing, JNLP spec, and security: http://docs.oracle.com/javase/tutori...plet/index.htm

  5. #5
    Junior Member
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java Applet executed by IE 7 browser

    Quote Originally Posted by copeg View Post
    You can do port communications directly via java: Trail: Custom Networking (The Java™ Tutorials) , the code responsible for the communication can be included within an applet to let the applet communicate to a remote server - the applet must be signed
    Copeg, thank you for your reply. Does port communication mean usage of socket ? Please confirm. Thanks.

Similar Threads

  1. a applet is not working in browser
    By bhavesh in forum What's Wrong With My Code?
    Replies: 0
    Last Post: December 3rd, 2012, 01:27 PM
  2. Applet not working in Browser
    By maz3r in forum Java Theory & Questions
    Replies: 5
    Last Post: August 31st, 2012, 09:21 AM
  3. [SOLVED] Why doesn't my Applet show up in my browser?
    By SendBorg in forum Java Applets
    Replies: 3
    Last Post: January 29th, 2012, 08:30 AM
  4. Replies: 10
    Last Post: January 12th, 2011, 05:48 AM