Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » jar build problem(Problem when trying to create runnable jar file)
jar build problem [message #1796215] Mon, 08 October 2018 08:25 Go to next message
Eclipse UserFriend
I have Jave jre1.8.0_181 installed, and I have no problem building my jar files in a number of projects. Except in one case, where I get this error message:

"Launching jmahjong build.xml has encountered a problem.
Specified VM install not found: type Standard VM, name jre1.8.0_171"

I have looked everywhere in the project settings and also in the Eclipse preferences and I can't find jre1.8.0_171 mentioned anywhere. The build xml file does not name it, I have no Windows environment variables containing it - so where does it come from?

I would be very greatful if someone could help me.
Re: jar build problem [message #1797087 is a reply to message #1796215] Thu, 25 October 2018 01:27 Go to previous messageGo to next message
Eclipse UserFriend
Can you tell us what you are trying to do? Are you doing a Eclipse project build or an Ant build or something like that? I will start with the Java Execution Environment definitions and see if any of them is associated with that particular JRE or that any project has this in its build path. This might happen if you imported an already existing project or workspace that was using this JRE.
Re: jar build problem [message #1797209 is a reply to message #1797087] Sun, 28 October 2018 08:19 Go to previous message
Eclipse UserFriend
I guess it's an Ant build. I know of no other way to build a runnable .jar file.

The build.xml file that I use contains:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project jmahjong">
    <!--this file was created by Eclipse Runnable JAR Export Wizard-->
    <!--ANT 1.7 is required                                        -->
    <!--define folder properties-->
    <property name="dir.buildfile" value="."/>
    <property name="dir.workspace" value="${dir.buildfile}/.."/>
    <property name="dir.jarfile" value="${dir.buildfile}"/>
    <target name="create_run_jar">
        <jar destfile="${dir.jarfile}/jmahjong.jar" filesetmanifest="mergewithoutmain">
            <manifest>
                <attribute name="Main-Class" value="Jmahjong"/>
                <attribute name="Class-Path" value="."/>
            </manifest>
            <fileset dir="${dir.jarfile}/bin"/>
        </jar>
    </target>
</project>


But I had to scratch this project and build it from start again, and then everything worked - using this same build.xml file.
Previous Topic:How to add column dynamically in birt report table using scripted dataset
Next Topic:eclipse slows down recently
Goto Forum:
  


Current Time: Sun Jul 06 09:24:50 EDT 2025

Powered by FUDForum. Page generated in 0.06545 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top