Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7517101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:20:24+00:00 2026-05-30T01:20:24+00:00

I’m trying to run GWT Devmode with Ant on CentOS using Xvfb and I’m

  • 0

I’m trying to run GWT Devmode with Ant on CentOS using Xvfb and I’m getting what appears to be a Java version error. The beginning of the stacktrace is

[java] JVM args ignored when same JVM is used
[java] Working directory ignored when same JVM is used.
[java] java.lang.NoClassDefFoundError: java.util.concurrent.Semaphore
[java]    at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.taskdefs.Java.run(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.taskdefs.Java.executeJava(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.taskdefs.Java.execute(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.UnknownElement.execute(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.Task.perform(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.Target.execute(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.Target.performTasks(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.Project.executeSortedTargets(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.Project.executeTarget(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.Project.executeTargets(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.Main.runBuild(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.Main.startAnt(ant-1.6.5.jar.so)
[java]    at org.apache.tools.ant.launch.Launcher.run(ant-launcher-1.6.5.jar.so)
[java]    at org.apache.tools.ant.launch.Launcher.main(ant-launcher-1.6.5.jar.so)
[java] Caused by: java.lang.NoClassDefFoundError: java.util.concurrent.Semaphore
[java]    at com.google.gwt.dev.DevModeBase.<init>(DevModeBase.java:749)
[java]    at com.google.gwt.dev.DevMode.<init>(DevMode.java:341)
[java]    at com.google.gwt.dev.DevMode.main(DevMode.java:309)
[java]    at java.lang.reflect.Method.invoke(libgcj.so.7rh)

I installed Sun’s java 1.7.0 and I think it’s set properly. It shows up when I do “java -version” and when I do “alternatives –config java” (version 1.4.2 is set as the default but I’ve changed the current version).

This is the ant task I’m running. Note that I’ve tried all combinations of fork=”true|false” and spawn=”true|false”

<target name="devmode" depends="" description="Run development mode">
    <java fork="true" classname="com.google.gwt.dev.DevMode" 
        dir="${basedir}/war" spawn="true">
        <classpath>
            <pathelement location="src" />
            <path refid="project.class.path" />
            <path refid="tools.class.path" />
        </classpath>
        <jvmarg value="-Xmx512M" />
        <jvmarg value="-javaagent:${appengine.folder}/lib/agent/appengine-agent.jar" />
        <jvmarg value="-Duser.dir=${basedir}/war" />
        <arg line="-war" />
        <arg value="${basedir}/war" />
        <arg line="-logLevel" />
        <arg value="INFO" />
        <arg value="-server" />
        <arg value="com.google.appengine.tools.development.gwt.AppEngineLauncher" />
        <arg value="net.bookedin.bam.BAM" />

    </java>

</target>

My $CLASSPATH variable (assuming that matters) shows: /usr/java/jdk1.7.0_02/lib

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T01:20:25+00:00Added an answer on May 30, 2026 at 1:20 am

    Discovered the problem. While I had updated java to 1.7.0, javac was still pointing to the old 1.4.2 version. I used alternatives to install the new version and switch to it:

    alternatives --install /usr/bin/javac javac /usr/java/jdk1.7.0_02/bin/javac 1
    alternatives --config javac
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.