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.


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

Results 1 to 2 of 2

Thread: COM Server between javascript and java

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Thanked 0 Times in 0 Posts

    Default COM Server between javascript and java

    Hi, I having some problem here ,

    i hava a Javascript COMserver code :

    <script language="JScript">
    var ComServer;

    function CreateSQLAccServer () {
    ComServer = new ActiveXObject('SQLAcc.BizApp');

    function Login () {
    CreateSQLAccServer ();
    if (! ComServer.IsLogin) {
    try {

    ComServer.Login('ADMIN', 'ADMIN', 'C:\\Program Files\\eStream\\SQLAccounting\\DEFAULT.DCF', 'ACC-0983.FDB');
    if (ComServer.IsLogin) {
    alert ("Connected");
    } catch (e) {

    but, now i would like to move the javascript code into java application base system

    I try :

    ActiveXComponent Comserver = new ActiveXComponent("SQLAcc.BizApp");

    but it having error and continue step how i do the checking see the Comserver is login or not?

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    So. Maryland, USA
    My Mood
    Thanked 698 Times in 680 Posts

    Default Re: COM Server between javascript and java

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    Please post your code correctly.

    I haven't seen this question before, but I suggest you either find another way to do what you want to do or investigate (by searching) java activex component.

Similar Threads

  1. difference between Java Aplet and JavaScript?
    By bryanOnInternet in forum AWT / Java Swing
    Replies: 4
    Last Post: December 29th, 2012, 06:03 PM
  2. Receive Server Sent Event Notifications in JAVA SERVER PAGE (JSP)
    By amritasenthilkumar in forum Web Frameworks
    Replies: 1
    Last Post: August 17th, 2012, 02:30 PM
  3. java to javascript
    By andrewdee in forum Other Programming Languages
    Replies: 4
    Last Post: October 19th, 2011, 08:28 AM