facebook

ant task no longer signing my jars

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #263726 Reply

    stanquinn
    Member

    I had to reinstall myeclipse/eclipse combo after having some horrible svn problems (turns out 1.3 can’t read 1.4 .svn files and cygwin and myeclipse were using different versions). After upgrading subeclipse I tried my handy dandy ant script which creates my applet and found it’s no longer signing the jars. This happens AFTER it unjars and javac’s a jar. The script hasn’t changed either, it just went from working before the rebuild to not working. The specific error is :
    BUILD FAILED
    C:\myeclipse\eclipse\Workspace\shared\build\build.xml:450: Execute failed: java.io.IOException: Cannot run program “jarsigner.exe”: CreateProcess error=2, The system cannot find the file specified
    (This comes from the console window)

    My signjar task hasn’t changed. I did upgrade my my java plugin to 1.6.0.
    MyEclipse preferences shows Ant – Runtime – ClassPath:Global Entries pointing to my new tools.jar in the jdk1.6.0\lib directory. (I assume this is what makes javac work).
    Under Java – Installed JRE’s I have checked my new jre1.6.0

    I had to reinstall some key plugins so I’m thinking this might be causing the error. I’m running the script through Cygwin now which works fine, but I’d rather be using my IDE.

    The only thing that looked like it might be vaguely relevant from the myeclipse log file is this section:
    !ENTRY org.eclipse.core.resources 2 1 2006-12-20 18:11:33.796
    !MESSAGE Skipping builder org.jboss.ide.eclipse.jdt.j2ee.jsp.core.jsp-builder for project geospot.net. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.

    !ENTRY org.eclipse.jdt.core 4 2 2006-12-20 18:13:38.156
    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.jdt.core”.
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jst.jsp.core.taglib.ProjectDescription.handleElementChanged(ProjectDescription.java:1033)
    at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:144)
    at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:120)
    at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:87)
    at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:72)
    at org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1448)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:1438)
    at org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:1286)
    at org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1261)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:760)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4023)
    at org.eclipse.jdt.internal.launching.LaunchingPlugin$VMChanges.doit(LaunchingPlugin.java:236)
    at org.eclipse.jdt.internal.launching.LaunchingPlugin$JREUpdateJob.run(LaunchingPlugin.java:316)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    !ENTRY org.eclipse.jdt.core 4 4 2006-12-20 18:13:38.156
    !MESSAGE Exception occurred in listener of Java element change notification
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jst.jsp.core.taglib.ProjectDescription.handleElementChanged(ProjectDescription.java:1033)
    at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:144)
    at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:120)
    at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:87)
    at org.eclipse.jst.jsp.core.taglib.TaglibIndex$ClasspathChangeListener.elementChanged(TaglibIndex.java:72)
    at org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1448)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:1438)
    at org.eclipse.jdt.internal.core.DeltaProcessor.firePostChangeDelta(DeltaProcessor.java:1286)
    at org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1261)
    at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:760)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
    at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4023)
    at org.eclipse.jdt.internal.launching.LaunchingPlugin$VMChanges.doit(LaunchingPlugin.java:236)
    at org.eclipse.jdt.internal.launching.LaunchingPlugin$JREUpdateJob.run(LaunchingPlugin.java:316)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

    Any help would be greatly appreciated!

    -Stan

    #263779 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Stan,
    You probably need to be sure to update your environment’s PATH variable to include your new JDK’s /bin dir, that is where jarsigner lives, and likely why you can’t find it. Just try and launch it from the command line and see if that works, if it doesn’t, you need to adjust the path.

    #263792 Reply

    stanquinn
    Member

    That was indeed the problem. Thanks much for the timely, insightful response.

    Regards,

    Stan Quinn

    #263794 Reply

    Riyad Kalla
    Member

    Good deal, I’m glad that helped.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: ant task no longer signing my jars

You must be logged in to post in the forum log in