Building java executable for windows

Well, actually I have two qestions:
1) how it is possible to build executable running under windows using usual Java tools, e. g. ant or something like this?
2) if I'm using VS.NET I can't compile files wich import javax. ... etc. classes, what I should to in order to import them?
Any suggestions welcome.

Well, actually I have two qestions:
1) how it is possible to build executable running
You want a .exe at a guess, search the forums.
All the regs. have answed this many many many times, and some very good answers exist on the forums.
Normally, when people ask this, they really need to read:
http://java.sun.com/docs/books/tutorial/jar/
http://java.sun.com/products/javawebstart/
But sometime (not very ofton) a ".exe" is needed:
http://gcc.gnu.org/java/
http://www.excelsior-usa.com/jet.html
under windows using usual Java tools, e. g. ant or
something like this?Sure, make a new task. For GCJ this would be very easy.
2) if I'm using VS.NET I can't compile files wich
import javax. ... etc. classes, what I should to in
order to import them?Are you compiling to .NET or to Java Byte Code.
If its Java Byte Code, I have no idea, if its .NET the below might work
http://classpath.org
http://www.ikvm.net/

Similar Messages

  • Developing Java application for windows CE based Handheld device

    Hi everybody,
    I am planning to develop the java application for windows CE
    based handheld device.I came to know that Oracle 9iLite supports
    the Developement of Java Application for windows CE devices.Can
    i use the JDeveloper IDE to develop the application on windows
    NT.If so how to deploy the application on windows CE device(Is
    there any options in Jdeveloper to deploy the application).Any
    body please give the solution.
    Regards,
    Siva mani kumar.D

    I agree. In my opinion Sun has done a horrible job documenting all this madness for the average developer just starting out with this stuff. There is the CLDC, J2ME, Personal Java, J2ME-WTK, MIDP, MIDP-FCS ... maddness. Anyway after sorting through it all for a few days, I think the answer to your question you will need to use Personal Java for WinCE and the Sharp Zaurus, and MIDP for PalmOS for the palm. Jeode seems to be the most common and best Personal Java implementation and it is basically the JDK1.2.2 (or is it 1.1.8) that is designed to run on WinCE and Embeddix (such as Lineo on the Zaurus). You program it just like you would a 1.1.8 application and then you can test it by running pjava.exe which is included in the personal java 3.1 download from Sun. There is also a program called JavaCheck that will ensure that your app will run properly in PersonalJava. As for the Palm, MIDP for PalmOS is a 574K program that installs on your palm device. You then use the J2ME-WTK (wireless toolkit) to build a JAR/JAD file and you use the MIDP API to write the code.

  • Can't purchase Java Developer for windows CD

    Hi,
    Somehow when purchasing a Java Developer for Windows CD it always gives a web page with an error. Is there a way to avoid this error, or is there a phone number I can call to make that purchase?
    Thanks, Boris.
    P.S. The error page has this content:
    Error Occurred While Processing Request
    Error Diagnostic Information
    unknown exception condition
    PCodeDocumentNodeImp::prepareForExecution
    Date/Time: 11/10/03 10:47:12
    Browser: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2
    Remote Address: 68.134.170.160
    HTTP Referer: http://www.oracle.com/webapps/techtracks/legal.jsp?tid=540&owner=1&opt1_rb=NewUser
    Template: E:\Inetpub\wwwroot\oracle-otngold\register.cfm
    Please inform the site administrator that this error has occurred (be sure to include the contents of this page in your message to the administrator).
    [Edited by: otngroup on Nov 10, 2003 10:25 AM]

    Basically you have a 99.9 percent Window's install so any Windows software issues are Microsoft problems.
    The only thing I can think of is the Microsoft servers were down briefly for maintenance or problems or maybe had a heavy load. If you were using the Auto update try going to the web site directly as they should be on another server.
    You might also try the Microsoft Window XP forums and see what you can find. Maybe search for: "Security Update stalls"?
    From what I've read just turning virus protection off doesn't work sometimes, you may have to UN-install it to get it to work.
    "Permissions" pertains to MAC SOFTWARE only. 3rd party software or Windows files are NOT affected at all by running permissions. Besides, it will only work on a HD with a Mac operating system anyway. You can't even select the Window partition in permissions to try it anyway.
    Good luck....

  • Java SDK for windows 3.1

    I have an old 486 in my room. The computer that has the SDK is out where my parents can see me when I'm doing my late night programming. I want to be able to put the java SDK on my Packard Bell 486 running windows 98. I searched and searched and searched some more off of google for a Java SDK for windows 3.1. The only thing i can find is IBM's program which they no longer service or even give you links to download their past versions. I am wondering if any of you guys know of any java SDK that will work on my 486 with windows 3.1.

    "I think your parents should buy you a nicer machine for your room. ;-)
    Good luck with that."
    LOL
    I have begged my dad to get a new computer just for the regular comptuer. The computer that I will "get caught" on is over 4.5 years old. When I ask him for another one he always says the one we have works.

  • Developing Java Applications for Windows CE

    Hello,
    I hope this sub forum is right. So I must develop a Java Application for Windows CE. I read something about J2ME, but I think this is only for Mobilephone and Windows CE supports AWT. So I tried just some simple forms with J2ME.
    Can anybody tell me how I develop java Applications for Windows CE? Can I use Eclipse or must I use another IDE?
    Realy I developed Swing 5-6 Month but I have no idea how I develop Java Applications for Windows CE.
    Thanks a lot for helping...

    The MIDP for Palm OS 1.0 requires Palm OS v3.5 or higher to run. According to your error message, the emulator is not running v3.5 or higher. Try to get hold of a ROM image with a later version. I've run it with v4.0 of the OS and it works.

  • Java class for windows, unix?

    If I create Java class using JDK for windows, can the class be used in Unix environment, like HP-UNIX, SunSolaris?

    and another issue with files and ms windows vs. *nix is taht, while some versions of windows forgive you if you leave files open after you have stoped dealing with them, unix like systems woun't forgive such things and you will run out of file pointers and... well. that's bad...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Will DPS app builder become available for Windows?

    I was wondering if the DSP app builder will become available for windows? Or is it an Mac only programm? If there will be a windows version, when will it launch? Or is there a beta version available for windows?

    Not anytime soon if ever.
    https://wiki.mozilla.org/Mobile/Platforms#Other_Platforms
    Windows Mobile
    Firefox has stopped development for Windows Mobile indefinitely. Thank you to our contributors for their continued support and feedback. The last release for Windows Mobile was 1.1 alpha 1 (download). We have stopped developing for Microsoft's mobile platform because Windows Phone 7 no longer allows developers to build C++ applications like Firefox, and Microsoft's new policies ban open-source software like Firefox from the Windows Phone Marketplace.

  • What jars are necessary when building an Executable for JAXB??

    I'm using JWSDP-1.2. I get the following error when I try to run my executable: DefaultValidationEventHandler: [FATAL_ERROR] Document root element is missing. I was curious which jars are necessary when making an executable for JAXB. So far I have: 1)dom.jar, 2) jaxb-api.jar, 3) jaxb-impl.jar, 4)jaxb-libs.jar, 5)jaxb-xjc.jar, 6)jax-qname.jar, 7)namespace.jar, 8)relaxngDatatype.jar, 9)sax.jar, 10)xalan.jar, 11)xercesImpl.jar, 12)xsdlib.jar . Are there any jars I'm missing? I thought I might be getting the error due to a missing class. I've made sure that the XML document is readable and that it exists. The application runs fine in Eclipse, but when I make an executable I get the ERROR message.

    I'll have to read up on the doctype stuff, but I don't have anything like that included. Is it necessary? I read from the same XML document when I run inside Eclipse and also read the same document when I run the jar.
    Below is the XML document I use and below the XML code is the code I use for my schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <Information>
      <Employee number="1" TabPn="true">
        <FName>Jack</FName>
        <LName>Perry</LName>
        <Status>Part Time</Status>
        <Title>Software Developer</title>
        <DaysEmployed>
          <WorkDay>Monday</WorkDay>
        </DaysEmployed>
      </Employee>
      <Employee number="2" TabPn="true">
        <FName>Bob</FName>
        <LName>Smith</LName>
        <Status>Full Time</Status>
        <Title>Janitor</title>
        <DaysEmployed>
          <WorkDay>Monday</WorkDay>
          <WorkDay>Tuesday</WorkDay>
          <WorkDay>Wednesday</WorkDay>
          <WorkDay>Thursday</WorkDay>
          <WorkDay>Friday</WorkDay>
        </DaysEmployed>
      </Employee>
      <Employee number="3" TabPn="true">
        <FName>Fred</FName>
        <LName>Williams</LName>
        <Status>Full Time</Status>
        <Title>Sales</title>
        <DaysEmployed>
          <WorkDay>Thursday</WorkDay>
          <WorkDay>Friday</WorkDay>
        </DaysEmployed>
      </Employee>
    </Information>------------------------------------------------------------------------------------------------------------------------------------------------
    Schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!--definition of simple elements-->
    <xs:element name="FName" type="xs:string"/>
    <xs:element name="LName" type="xs:string"/>
    <xs:element name="Status" type="xs:string"/>
    <xs:element name="Title" type="xs:string"/>
    <xs:element name="WorkDay" type="xs:string"/>
    <!--definition of attributes-->
    <xs:attribute name="number" type="xs:positiveInteger"/>
    <xs:attribute name="TabPn" type="xs:boolean"/>
    <!--definition of complex elements-->
    <xs:element name="DaysEmployed">
      <xs:complexType>
        <xs:sequence>
          <xs:element ref="WorkDay" maxOccurs="7"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    <xs:element name="Employee" >
      <xs:complexType>
        <xs:sequence>
          <xs:element ref="FName"/>
          <xs:element ref="LName"/>
          <xs:element ref="Status"/>
          <xs:element ref="Title"/>
          <xs:element ref="DaysEmployed"/>
        </xs:sequence>
        <xs:attribute ref="TabPn" use="required"/>
        <xs:attribute ref="number" use="required"/>
      </xs:complexType>
    </xs:element>
    <xs:element name="Information">
      <xs:complexType>
        <xs:sequence>
          <xs:element ref="Employee" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    </xs:schema>

  • How to create an executable for Windows or Unix

    Hi,
    I would like to know how to do to create an executable, an application which is able to work under windows for exemple without installing a JVM ?
    (When you download a program which was writing in java on internet it is an executable. You don't need a JVM on your system to run it. I would like to do the same thing...)
    thanks

    Hi C,
    I think they use JToExe.exe to compile the java project but I think they need a JVM to run the application. I just wanted to know if it is possible to run an application without JVM after any compilation. When we find an executable, most of the time is it a Visual project ? (in c or other langage ?) I will work later for a company which develop a new application in Java. To put it on the market they need to do an executable.
    Thanks for your time

  • Building Java executables

    Can anyone give me a pointer for a process to build and exe using a set of classes I have ?

    Probably the most wonderful aspect of Java is its cross-
    platform capability. Creating an executable from Java
    classes defeats this feature. If you really want to
    create an executable, you will need to use a third-party
    tool such as IBM's VisualAge for Java, or one of the
    Java-to-C translators available and then compile the
    resulting C code.
    Mark

  • Java-plugin for windows vista question

    Hello,
    What is the best java -plug ins for the windows Vista OS in the client? Is JRE 1.6 is good or we need to get anything higher? we have currently jre1.6 but at startup itis giving some problem.
    does anybody uses window vista as clint ? if so what is your java-plug in?
    appreacite for the answer
    Thanks
    Edited by: Josh Samuel on Jan 12, 2009 8:06 AM

    Highest Version of JRE would be 1.6.0_11. But there exists some very annoying Bugs with Forms and Update 10 and 11 of the 1.6 Java Runtime. At the moment we use 1.6.0_07 for our Forms which runs fine (and advise our customers to turn Java Update off ;-))
    regards

  • Creating a Java game for Windows

    Does anyone know a website or tutorial that provides information to Java developers, regarding the production of games? I would like to create my own chess game in Java for use on a Windows platform.
    Thanks

    Put a combination of the following key words in your favorite search engine, you should find something :
    Java 2D
    double buffering
    animation
    runnable
    The main idea in most simple games is to check the state of your game and then to draw that state. You do this once every 25th of a second (the runnable interface lets you do so). This is done over and over again until the end of the game.
    If you simply rewrite the paint(Graphics) method of your drawing without implementing double buffering, then you'll get a "flickering" game. How tos on double buffering with Java are all over the net.

  • Java me for windows mobile 5.0

    I am trying to download java ME to my motorola Q but I don't know exactly how to do it and what links to pick. I want to ensure that I don't load the wrong one to my phone

    I looking for java fro PDA [i-mate k-jam oprater with windows mobile 5
    any one can help                                                                                                                                                                               

  • Java Commapi for Windows NOT available anymore

    The new version of the java communications API (3.0 Update 1) only has Linux and Solaris versions available for download. The old version 2.0 had a windows version with the all important win32comm.dll.
    Where is the Windows download for this?? It was there a few months ago. Now gone. No other downloads available. No where on Sun site to get previous version.
    Please help.

    Try google: [url http://www.google.com/search?q=site%3Aforum%2Ejava%2Esun%2Ecom+communications+api+win32]site:forum.java.sun.com communications api win32. One of the replies in [url /thread.jspa?threadID=684314]second link seems to have the answer.

  • Enterprise Manager 10g Java Console  for Windows

    Dear all,
    I have download Complete Files of Oracle10.1.0.2 for Microsoft Windows (32-bit). After installation, When I opened Web-based Oracle Enterprise Manager 10g; I see the following tip on the Administration page
    TIP Use the Enterprise Manager 10g Java Console to manage Streams, Advanced Replication, Advanced Queues, XML Database, Spatial and Workspace.
    But I am still looking from where it can be launched. Have any professional experienced the Enterprise Manager 10g Java Console on MS Windows platform?
    Regds,
    Faran

    It is not installed by default, you have to mark its
    checkbox explicitly. In the package selection tree, it is
    under Oracle Client 10.1.0.2.0.
    It's only a Beta! But it's much more stable and a little
    bit faster than 9iR2. They probably didn't check it for
    default installation as it's just a beta.
    There's one another interesting issue with Enterprise
    Managers (Java and web) in 10g: each of them recommends
    you in the welcome page to use the other one. What was
    first, the chicken, or the egg???
    M.

Maybe you are looking for