Convert Java into a dll file

is it possible to make portions of java program into a dll file so that other program can consume it?

dll which stands for Dynamic Link Library, is specific to windows and dos I believe, and so attempting to make a change like the one you request will break the ability of a program to work on mult OSs. There are several exe conversion utilities out there, but I haven't seen a dll conversion one, but then again, I haven't been looking.
Perhaps the best answer is not to directly answer your specific question, but try to answer your problem. I assume that you want Java talking to a C or C++ program or other similar program that can compile to dll form. If so, have you considered looking into using the JNI library? This is one of several solutions that will allow you to do just this. Again, using it usually breaks your program's ability to be interoperable on multiple OSs.
Good luck.

Similar Messages

  • How to convert java class to dll file for using in Microsoft Technology(.n)

    hey hemmj !!!!!!
    nice replying , first of all i d like to say thanks for response me so frequently..... i like such type of guy... i d never forget ur online support.
    hey buddy, i ve a problem with applet application...
    i m working on java chat server build on swing applet. As it is chat server, it is divided into two parts, one is server application and other is client application. I want to run this server app on the client server and the basic thing with this site is that it is running on .net platform(Microsoft). and the other app ll running on the client machine or end user. Now the problem is that this site would run only if the server app ll be run on server. This server app ll open the socket of server, which ll listen the request of the user...... So, the requirement is to convert this java sever class file into dll file and register this dll file with the IIS server.So, It run and stop with the IIS server.
    I ve already search the way to convert the java class file into dll file. This is possible in such way........... below code is for the java class file...
    import java.net.*;
    import java.io.*;
    import java.util.*;
    public class chatServer
    public static void main(String args[]) throws Exception
                        ServerSocket sersoc=new ServerSocket(1234);// Any port number above 1000 should do
    // as most ports below 1000 are used by system
    Vector socvec=new Vector();
    String data="";int i,j=0;
    BufferedReader in;
    //System.out.println("Listening of port " + sersoc.getLocalPort());
    //System.out.println("Waiting for connections...");
    while(true)
    Socket soc=sersoc.accept();
    socvec.addElement(soc);
    chatServerReadThread csrt=new chatServerReadThread(socvec, soc);
    in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
    PrintStream out=new PrintStream(soc.getOutputStream());
    out.println("Connected to chat server");
    out.flush();
    data= in.readLine();
    for(i=0;i<socvec.size();i++)
    soc=(Socket)socvec.elementAt(i);
    out=new PrintStream(soc.getOutputStream());
    out.println(data + " connected");
    out.flush();
    //System.out.println(data + " connected");
    csrt.start(); // error is comming from here..... plz help me.
    class chatServerReadThread extends Thread
    Vector socvec;
    PrintStream out;
    chatServerReadThread(Vector socvec, Socket soc)
    this.socvec=socvec;
    try
    out=new PrintStream(soc.getOutputStream());
    }catch(Exception e){}
    public void run()
    try
    String data;
    Socket soc;
    BufferedReader in;
    while(true)
    for(int i=0;i<socvec.size();i++)
    soc=(Socket)socvec.elementAt(i);
    in=new BufferedReader(new InputStreamReader(soc.getInputStream()));
    if(in.ready())
    try
    data=in.readLine();
    if(data.charAt(0) == ']')
    data = in.readLine() + " exited";
    //System.out.println(data);
    socvec.removeElement(soc);
    for(int e=0;e<socvec.size();e++)
    soc=(Socket)socvec.elementAt(e);
    out=new PrintStream(soc.getOutputStream());
    out.println(data);
    out.flush();
    else
    for(int e=0;e<socvec.size();e++)
    soc=(Socket)socvec.elementAt(e);
    out=new PrintStream(soc.getOutputStream());
    out.println(data);
    out.flush();
    }catch(Exception e){socvec.removeElement(soc);}
    }catch(Exception e){e.printStackTrace();}
    first i ve made the jar file of this class
    jar cvf chatServer.jar chatServer.classafter getting the jar chatServer.jar. I ve opened the .net dos prompt and
    type this command which ll make dll file automatically....
    > jbimp /t:library chatServer.jar
    And you'll see the following output:
    Microsoft (R) Java-language bytecode to MSIL converter version 1.1.4322.0
    for Microsoft (R) .NET Framework version 1.1.4322
    Copyright (C) Microsoft Corp 2000-2002. All rights reserved.
    Created chatServer.dll
    I cant get the problem origin from where it is comming, when i tried to convert it into .dll file it shown an error that, it did not recongnized the method in first class
    public static void chatServerReadThread.start() method
    is not recognized by .net dos prompt commnad. But when i omit this method it gets created the .dll file. This start method is basically the default method of thread class that run the thread from the same class..
    By vewing the code u can visulize the thing,, i ve marked the code from where the error is comming.
    Plz do it as soon as possible, i ll waiting for ur reply......
    I ll be really thanking u for that....
    Thanx and regards
    Niraj Kumar Singh

    I wonder if this will work:
    jbimp /t:exe chatServer.jar
    Your chatServer is an application that can be started from the commandline.
    A dll is a library to be used in com, com+, other executables or ....

  • How to use Borland JBuilder9 to convert Java into C?

    Hi there!
    I know this topic has been discussed since the beginning of time, but I would like to compile a Windows executable (.exe). I have tried all possible tools (e.g. exe4j, JET etc.) to do so, but they all do require a JVM at some level. I heard that Borland JBuilder 9 has the capability to convert Java into C code and then compile it directly. Has anybody done that before? And if so, how does it work? I have been playing around with JBuilder, but have not been able to find an option to do so.

    I know this topic has been discussed since the
    beginning of time, but I would like to compile a
    Windows executable (.exe). I have tried all possible
    tools (e.g. exe4j, JET etc.) to do so, but they all do
    require a JVM at some level. I heard that Borland
    JBuilder 9 has the capability to convert Java into C
    code and then compile it directly. Has anybody done
    that before? And if so, how does it work? I have been
    playing around with JBuilder, but have not been able
    to find an option to do so. You need a version more than the personal. It costs!
    Once you've created a project and written your code, just go to wizards/NativeExecutableBuilder menu.
    Configure few stupid things. It's done. Compile it.

  • Converting java to an exe file

    Hi
    Is there any way i can convert my java app into an exe file?
    That can be run just by double clicking it?
    Thanks

    Do you see that search box on the left?
    <--- That left!
    We had so many threads about that topic.
    * Search before Posting: Especially if you are in a hurry, you may find that the question has already been asked and answered during the long history of the Forums.
    * Know the basics: Read this FAQ and the basic trails of the Java Tutorial (like Getting Started or Learning the Java Language). If you don't understand the question you are posing, you may not understand the answers.
    * Be thorough and precise: Proofread your question before posting. Describe the steps that you have taken. The more effort you put into researching and describing your problem, the more likely you will get a sincere effort in return.
    * Post a subject line that describes the problem: Experts in your subject may skim right past subject lines like "Urgent" and "Need help ASAP". Use keywords about the technologies instead.
    * Post once and in the right area: Multiple postings are discouraged, because they make the category lists longer and create more email traffic for developers who have placed watches on multiple categories. Because of this, duplicate posts are considered a waste of time and an annoyance to many community members, that is, the people who might help you.
    * Post a problem, not an assignment: Break your assignment down into specific problems that you can ask for help with. Dorm hall lounges may be a better resource if you have a last minute, "urgent" demand for solutions to homework problems.
    * Answer questions as well as asking: You can learn by doing as well as gain respect in the community by being a full participant.
    From the forum FAQ

  • Unable to register the SAP JAVA CONNECTOR sapjco3.dll file

    HI
    I'm trying to intergrate BO and BW using SAP BO Integration kit, and following the manual at http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/a00ee3b2-5283-2b10-f1bf-8c6413e0898f&overridelayout=true
    But first i must install the SAP Java Connector, I have downloaded them from https://websmp107.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000719346&.
    My server is a WMvare win 2008.service pack 2.
    My problem is that i'm unable to register the sapjco3.dll file.
    I'm runnning the comand regsvr32 "C:windowssyswow64sapjco3.dll
    but I only get the error message "The module "sapjco3.dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "sapjco3.dll" is a valid DLL or OCX file ant try again"
    I hav tried both the 64 bit and the 32 bit version of the dll. same error.
    the dll version is 7110.34.16.7531
    Any ideas
    Thanks

    Hi Pal,
    you need to use the Java Connector v 2.1.8 and there is no need to register the DLL.
    ingo

  • Compiling JAVA into Windows .exe files

    Hi,
    Here's an easy question - how do you compile JAVA source into Windows .exe files (as opposed to class files with bytecode in them). I imagine there is a third-party product out there somewhere?

    A Bayesian network is a mathematical representation of logical inference.
    A very simple example has two nodes: "has tail" and "is horse", connected by a single link. If we know "is horse" is true, then it nearly always follows that "has tail" is also true. This is called modus ponens in logic. If we know "has tail" is true, then "is horse" might be true, but it might not. To infer that "is horse" is true in such a case is to commit what is called the fallacy of affirming the consequent, in logic. However, using Bayes' theorem, which would require that we know some general information about the prevelance of horses among tailed animals, and the general prevalence of horses among things in general, we can measure the exact increase in the probability that "is horse" is true that results from our knowing "has tail" to be true.
    For more information, see http://www.bayesian.org
    The classic book on the subject is Judea Pearl, Probabilistic Reasoning in Intelligent Systems.

  • How do I download a video and convert it into an flv file? In previous versions, all I had to do was pick the resolution and it was done automaticlly. I use DVDFLICK to burn my downloaded videos to DVD.

    In previous versions of Firefox, I was able to easily download and convert videos into .flv files. I was then able to burn DVDs of theses downloaded videos using DVDFLICK. I'm now unable to do this using Firefox6.0.2?

    Hello,
    There is a process by which you can produce a BluRay encode on a red laser DVD. See link below
    from Ken Stone site.
    http://www.kenstone.net/fcphomepage/burn_br_mac_superdrivestone.html
    Also this can be done in Toast 10 with the BluRay plugin, somewhat easier.
    Good Luck, Tom

  • On Adobe Acrobat Pro, how do I take a PDF file and convert it into an excel file?

    I am not sure how to take a PDF file and change it into an excel file. I have Adobe Acrobat Pro. Thanks!

    Using Acrobat XI Pro.
    File - Save As Other - Spreadsheet - Microsoft Excel Workbook
    Be well...

  • ACR converting raw into huge jpg files even at low quality

    Hi  Need  help !!I am downloading raw files from canon 30d into bridge and processing RAW files in ACR.
    When i have finished the edit I am clicking on save image and selecting jpg and then low quality. The RAw image is about 7mb and the converted low quality jpgs are also coming out to 7mb. These are far too big and is only a recent problem. I have re-installed photoshop but this has not fixed the problem.
    By the way if I convert an image from raw that I haven't edited by the same process the file size is only 300kb
    Would be very grateful if anyone has an answer to this

    Thanks again Yammer
    If I save as medium quality file size goes higher - over 13mb
    Saving it as an uncompressed tiff sent the file size upto 1.5GB !!!!
    The two installed versions were the 64bit version and the normal (32 bit ?)
    I did uninstall and delete Adobe folders before reinstalling but as you say there may have been files left behind - will look into that
    I paid £30 to adobe for there technical support - but getting nowhere at present as with their basic level support I think I need them to escalate to more qualified people.
    I am wondering if the problem is with my pc due to the upscaling of file size when edits were done in Paint
    Cheers
    Mark

  • I wan to converte java prog. to exe file

    hi to all
    i have program in java and i use netbeans 6 ( GUI)
    how can i convert this to exe file ??
    plz help me because i use JAR file but i cant doit
    thanx

    I don't NetBeanz, but it's always best to learn from the command line: http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • Convert Java Project to exe file

    Helloz everyone,
    I have completed a java project. Now I have to convert it in exe file for windows.
    Can u please guide me. I can use any third party tool.
    But I want that it can be installed on any computer whenever double clicked and it make a icon. Whenever user click on that icon then it run the application.
    Thanks in advance.
    ViVeK

    Your jar command appears to be incomplete; it should lookk about like this:
    jar cvmf0 manifest_file MyJar.jar MyPackage/MyClass.class MyPackage/MyClass.gif MyPackage/MyClass.txt MyPackage/MyClass.html
    The 'm' in the command represents the manifest file. The 'f' represents the jarfile name. These can be reversed in order, but must be reversed respectively - that is, if the 'f' comes before the 'm', then the MyJar.jar needs to come before the manifest_file.
    The contents of the manifest needs - in the simplest cases - to look like this:
    Line 1. Main-Class: MyPackage.MyClass
    Line 2.
    Note please the Line x. do not appear; however the line 2 must exist and must be empty. IOW, a carrage return must exist at the end of line 1.
    Note too that the MyPackage part is optional. It's there if you have a specifically named package.
    Note lastly that you may not have .gif, .txt, etc files to add to your jarfile.

  • Trouble converting movies into ipod compatible files

    I just got quicktime pro and I'm trying to convert movie files into files that can be played on my ipod... the files are changing into M4V files and can be played on my ipod but they have no sound.. can anyone help me fix this?

    Before you can convert the file must play without errors in QuickTime.
    If the file is MPEG-1 you'll need to use the free MPEG Streamclip app to convert to iPod settings.

  • Converting .class/.java/.jar files to .dll file

    I am trying to conver either class, java, or jar files into a dll so I can install my app onto a blackberry. Does anyone know how to do it? thx for your help.

    Dear friend,
    i too in the situation of converting java class to DLL, so that i can call java class from ASP.NET, if u know any third party control and solution, pls mail me:
    [email protected]

  • Converting Java class file to .dll

    Dear all,
    Is there any way to convert a Java class file to a .dll file?
    (Background being that there is a software that only allows callouts to DLLs and the method I have developed is in Java so need to convert it to a .dll)
    Any insight/advice/pointers are most appreciated.
    Thanks much,
    David

    Hi there,
    Yes you can convert a Java Class to DLL file using Microsoft Visual J#.NET (Installation required Visual Studio.NET) you can download it from the microsoft site.
    www.microsoft.com/downloads
    then go for search below in combo box(Visual J#.NET). After installation open new project select class library. write your java code(not fully supported j2se). build your application. All the Java Code is embeded in dll. Found at e.g. C:/JavaToDll/bin/debug/JavaToDll.dll This is a way to convert Java Code to a dll. frankly speaking i do not like .NET (copy of Java Technology must be baned completely).
    Thanks
    Please correct if i am wrong.
    Yahya Kamran (Software Engineer)

  • Convert a Business Service into a DLL

    Hello,
    Anyone aware of how a Business Service can be converted into a DLL file?
    Actually, my purpose of asking is this: We are developing a Business Service, and we would like to conceal its code. We thought that if it is converted into a DLL, we could use SElib.dynamicLink to invoke it.
    Also, how is the code for the Siebel Vanilla BSs concealed? It would be really wonderful if we could do the same with our custom Business Services.
    Thanks a lot,
    Quipick

    Hi Axel,
    Thanks for your comments. You said "....Moving a BS code into a DLL I would not recommend.....". Why is this so?
    Mainly, I want to know if converting it to a DLL is indeed possible in the first place.
    I tried using the code generator to convert it to java. These Java classes I packaged as a Jar file. Then I used the Jbimp utility to try and convert the Jar files to Dll. However the Jbimp utility has some drawbacks and is not sufficient to perform the conversion.
    True, my code is not really rocket science :-).
    However it is a part of ongoing research efforts, and its my job to see it done :(, or atleast provide reasons why it cannot be done.
    These are my questions:
    -Is it possible to convert a BS to a DLL. If yes, how?
    -How has Siebel prevented access to its vanilla BSs
    Thanks,
    Quipick

Maybe you are looking for