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]

Similar Messages

  • How to convert java .class file to .dll file

    hi,
    I got a problem, I have to convert my java .class file to .dll file. Microsoft VC++ program will invoke the converted .dll file.
    Is there any other possibility.
    I was confused.
    Cam any body help me. If you are having solution for the can you send to my [email protected] account.
    thanks,

    No, it is not possible to do what you are suggesting. Yes, you could produce a DLL that wraps the JVM and loads your java class exposing a C and/or C++ callable interface, but that is a lot to go through unless your class is VERY complex. Otherwise, you might want to just create and maintain two implementations.

  • How to convert .class file to .dll file

    hi,
    I got a problem, I have to convert my java .class file to .dll file. Microsoft VC++ program will invoke the converted .dll file.
    Is there any other possibility.
    I was confused.
    Cam any body help me. If you are having solution for the can you send to my [email protected] account.
    thanks,

    No, it is not possible to do what you are suggesting. Yes, you could produce a DLL that wraps the JVM and loads your java class exposing a C and/or C++ callable interface, but that is a lot to go through unless your class is VERY complex. Otherwise, you might want to just create and maintain two implementations.

  • How to convert .class into .jar file

    Hi,
    How to convert .class into .jar file

    jsf_VWP5.5.1 wrote:
    Hi,
    How to convert .class into .jar fileFrom a command prompt, cd to the location of your .class file(s).
    If you want to create a simple jar, use: jar -cf Whatever.jar Whatever.class
    If you want to compile all .class files in a directory into a jar, use *.class instead.
    Now, I'm going to assume you want to create an executable jar... here's how to do that:
    1) Create a blank text file; for this example, lets call it main.txt.
    2) In the first line of main.txt, type: Main-class: Whatever ('Whatever' should be the name of the class in your program where the main() method is located)
    3) Press enter to go to the next line (someone please correct me if I'm wrong, but if you don't insert the line break/CR after the Main-class: statement, this will not work... in my experience, this is true)
    4) Make sure you save this file in the same directory as your .class file(s).
    5) Type: jar -cmf Whatever.jar main.txt Whatever.class
    ...and that's about it. For more information on the usage of the jar command and to understand the switches (such as -cmf), try jar --help.
    Hope that helps.

  • Converting .class file to .dll file

    Hi
    Can any body tell me what is the procedure for converting .class file to .dll(windows) file.
    Thanks,
    latif

    One way, You could produce a DLL that wraps the JVM and loads your java class exposing a C and/or C++ callable interface, but that is a lot to go through.
    Otherwise, if you are thinking of using Java class for .net applications you can
    use IKVM.NET to convert Java class to .NET dll. For this you can refer to:
    http://www.ikvm.net/userguide/tutorial.html

  • What's the Java equivalent of a .dll file?

    If any?

    Actually, DLL for Windows. Where as in java,
    It's doesn't dynamically link.
    It's some what like Reflection classes.

  • How to use matlab code in Labview without having MATLAB software. I tried to convert .m files into .dll files. But i could not do. Please help me out..

    Please help me out...
    Solved!
    Go to Solution.

    bombay wrote:
    Yes. It can be done. But Math script can not evaluate all functions in .m files (There are some exceptions).
    And those can perhaps easily be ported to LabVIEW/MathScript?
    It is not sufficient to disregard running your Matlab code in LabVIEW based on a few exceptions without first thoroughly evaluating the impact they have.
    If you want to stick with Matlab in your implementation, then there are other avenues than hypotethizing about the limited portability issues of using MathScript in your project?
    Br,
    /Roger

  • 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 ....

  • 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.

  • How to add dll file in a Jar to create executable file

    Hi All!
    I have one Java file which use one Jar file & three dll file.
    I create jar file as described in java tutorial
    http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html
    1) I created Manifiest.txt by writting :
    Class-Path: C:\Flasher\jflashtrial\JFlash.jar
    Main-Class: Flaher2
    2) I create jar file by:
    jar cfm MyJar.jar Manifest.txt *.class
    It create MyJar.jar successfully.
    After that I used Jar2Exe Wizard to create Myjar.exe
    It also create MyJar.exe file, but when I tried to open It , It did open & also didn't give any error message too.
    Before this I created one exe file by the same way except; that file does not using any dll or jar file so for that I create my jar file by simply without using Manifest.txt
    I wrote:
    jar cf MyJar.jar *.class
    After that I creat it's exe bu using Jar2Exe, It create its exe file & it's work well.
    So for my next try with one jar file & three dll file, what is wrong ?
    I saved my exe jar file & dll filea file in a same folder. But still have a problem .
    What I did wrong/skip in creating Jar file.
    Your any help regarding this topic would be appreciated
    Kirti

    Hello,
    Getting all of this to work right is a bit of a challenge. I haven't used jar2exe at all, but we have a number of native libraries that we support that have to use dll's. I would recommend adding a static initializer like
    public class flup {
    static {
    try {
    System.loadLibrary("flup"); // will look for flup.dll in the %PATH%
    } catch (Exception e) {
    e.printStackTrace();
    This should give you a little more information about what is failing. Chances are the dll's are not in the PATH. You may be able to get around this by using regsvr32 to register the Dll's but I have had mixed results with that solution.
    You also may be able to write a simple c++ program that uses the dll's (or maybe you already know of one) and use the "depends.exe" program from Microsoft's Platform SDK to examine the full dll dependency tree if you continue to have problems.
    Best of Luck,
    Andrew

  • How to incorporate .dll files and java

    i have one .dll file (that .dll file was not developed by me but i know which methods are there in that .dll file) then how to incorate that one

    What exactly do you mean by "how to incoporate" .dll file?
    I assume you want to call native methods defined in the .dll file in a java progam.
    If so, then this Java Native Interface (JNI) tutorials and code camps at http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html tells you how.
    Hope this helps.

  • Using dll files

    my application(applet) uses some dll files(native method but got the problem how to place the dll(into yhr user system) file when user loades the applet
    if anybody knowing plz help me

    i order work dll files the dll files d\should be placed inside the [system32[/b] folder if no path is set
    if not we have to set the path for the dll files now how i can achive one of this in runtime
    there no need to instal jmf file but we can take what ever requered class file and we can run the application (with some sequrity setting )
    but my main problem is dll files if anybody having fix to this plz respond me

  • How to create a .DLL file from a .C file ?

    Hi everybody
    I'm looking for a method how to create a .DLL file from a .C file .That Dll file will be used to perform a board to measure voice quality accoding to the international standard named PESQ (perceptual evaluation of speech qualty) P.862.
    Can anyone help to start dealing with Dlls and give some advices to avoid errors ?
    thx
    Attachments:
    source.zip ‏37 KB

    Hi sinaps,
    You mention that you want to create a DLL from a .C file. Just to clarify, are you using C (.c file) or C++ (.cpp) to write your code?
    Also, if you are using C++, are you using Visual Studio? (The reason I ask is because this forum is geared towards Measurement Studio, which is an add on to Microsoft Visual Studio).
    That being said,
    If you are using C: National Instruments provides an ANSI C Application Development Environment called LabWindows/CVI which makes building dlls a snap. It has templates for DLLs and you can build them either as stdcall or cdecl dlls.
    Developer Zone Tutorial: Building a DLL with LabWindows/CVI 8.5 for use with LabVIEW 8.5
    If you are using Visual C++: Look at the link that Al provided earlier.
    MSDN: Walkthrough: Creating and Using a Dynamic Link Library
    If you aren't using CVI or Visual Studio, then really the best bet is to do a google search for "Create C DLL" or post or a forum for the appropriate environment that you are using.
    Thanks!
    Message Edited by Jervin_J on 03-14-2009 02:02 PM
    Jervin Justin
    NI TestStand Product Manager

  • Running classes in jar

    This is probably a fairly stupid question, but I wasn't able to find any documentation for this particular problem.
    I created your basic HelloWorld project with the following directory structure:
    HelloWorld
    |- classes/hello/world/HelloWorld.class
    |- src/java/hello/world/HelloWorld.java
    |- Manifest.txt
    Manifest.txt only has the following line:
    Main-Class: hello.world.HelloWorld
    Now, I try to jar this up and run it as a jar by performing the following in the HelloWorld directory:
    jar cfm hello.jar Manifest.txt classes/wgen/world/HelloWorld.class
    java -jar hello.jar
    And I get a NoClassDefFoundError: hello/world/HelloWorld exception. What do I have to do so I can run HelloWorld from the jar?
    Thanks in advance!

    Did you mean classes/wgen/world/HelloWorld.class or classes/hello/world/HelloWorld.class? You used both in your post.
    What is the package statement, if any, in the HelloWorld.java source code? How did you test the HelloWorld app before you jar'ed it? What is the output of "jar tf hello.jar"
    Assuming the directory path is classes/hello/world/HelloWorld.class, the source code starts with "package hello.world;" and your existing manifest then something like this cd classes
    jar cfm hello.jar Manifest.txt hello/world/HelloWorld.class
    java -cp hello.jar hello.world.HelloWorld
    java -jar hello.jarI always test a jar using the -cp option first to make sure I jar'ed the classes correctly, then test it with the -jar option. If it does not work with -cp then the classes are not jar'ed correctly. If it works with -cp but does not work with -jar, then the manifest is incorrect.

  • 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)

Maybe you are looking for

  • PPC Mac mini + Apple remote

    Hi - I've got a PPC mac mini and use it mainly with EyeTV 2.3 / Miglia TVMini. I managed to get Front Row installed on it, and it sort of works ok with the Miglia remote. Having read that EyeTV now supports the Apple remote, I went and got one - to f

  • IDE's on Arch

    Hello there, can anyone give me some info about a good IDE to use on Arch or maybe two or three that can help me work on C, C++, Java, PHP, Perl, Python, some web development and databases??? I'm a Computer Sciences student and I have already program

  • Advanced Search-Clearing search criteria

    Hi, I am developing apps using JDev 10.1.2. and JHS build 32. My problem is with using the Advanced Search on page with table layout. The Advanced Search contains one lookup field (a lamp). When I enter something in the lamp field and press Find butt

  • Need to get com.sap.tc.logging.*

    hi, Please anybody let me know from where i can get the com.sap.tc.logging.*

  • Problem Importing Photos

    I'm trying to import photos from my camera into iphoto. I have the camera connected correctly to the computer, have selected import at the import screen and get a visible indication of the photos being transferred from the camera. After disconnecting