building net.sf.j2s.ajax (from svn) hangs forever

22 views
Skip to first unread message

asr....@gmail.com

unread,
Apr 9, 2013, 5:58:28 PM4/9/13
to java2...@googlegroups.com
Hi,

I am trying to build Java2Script (to be able to build JSmol) from SVN (r1211) according to these intructions: http://j2s.sourceforge.net/setup-j2s-from-subversion.html it hangs when building net.sf.j2s.ajax, it just hangs with no message whatsoever. Any ideas? Thanks in advance.


Best
Alexander

Zhou Renjian

unread,
Apr 9, 2013, 11:07:41 PM4/9/13
to Java2Script
It seems that you need to config servlet jar in .classpath, e.g. 

<classpathentry kind="lib" path="lib/javax.servlet_2.5.0.v200910301333.jar"/>

You can find javax.servlet_2.5.0.v200910301333.jar or other given version in Eclipse's plugins folder.

If you already configure this, what is your error message shown in Problems view?


Regards,
Zhou Renjian


--
You received this message because you are subscribed to the Google Groups "Java2Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java2script...@googlegroups.com.
To post to this group, send email to java2...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/java2script/-/Xb0LS7rDx_0J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

asr....@gmail.com

unread,
Apr 10, 2013, 3:19:38 AM4/10/13
to java2...@googlegroups.com
Hi,

I configured that.

Previously I had <classpathentry kind="var" path="JAVAX_SERVLET"/> with the JAVAX_SERVLET var set accordingly. But I also tried your suggestion.


There are no errors shown in the Problems view

I failed to note that I am on Mac OSX.

Zhou Renjian

unread,
Apr 10, 2013, 7:03:11 AM4/10/13
to Java2Script
What version of Eclipse are you using? Java2Script only supports 3.5 and 3.6 by now.

Java2Script supports Mac OSX, both 3.5 and 3.6 under Snow Leopard and Lion are tested.

Regards,
Zhou Renjian


To view this discussion on the web visit https://groups.google.com/d/msg/java2script/-/XjNIZilih70J.

asr....@gmail.com

unread,
Apr 11, 2013, 3:50:57 PM4/11/13
to java2...@googlegroups.com
That seemed to work. I used these files http://j2s.sourceforge.net/download.html and then updated them with your updates. So, no SVN. I could then compile JSmol.

Thanks!

Zhou Renjian

unread,
Jun 27, 2013, 9:55:00 AM6/27/13
to java2...@googlegroups.com
Hi Alexander,

I fixed this problem a few days ago. Please update from SVN and rebuild J2S again, if you want to.

The main point of the problem is that Java2Script compiler tries to remove javabuilder, if both of javabuilder and java2scriptbuilder exist in .project file. It runs into a deadlock in doing so.

Here is the modified part of .project in net.sf.j2s.ajax:

<!--

<buildCommand>

<name>org.eclipse.jdt.core.javabuilder</name>

<arguments>

</arguments>

</buildCommand>

-->

<!--

DO NOT enable both javabuilder and java2scriptbuilder,

or Eclipse will be locked in building this project.

If you are building Java2Script from SVN, try to enable

javabuilder and disable java2scriptbuilder first and build

out Java2Script plug-in. And after installing Java2Script,

try to disable javabuilder and re-enable java2scriptbuilder.

-->

<buildCommand>

<name>net.sf.j2s.core.java2scriptbuilder</name>

<arguments>

</arguments>

</buildCommand>


Just comment out javabuilder to avoid deadlock. And compiler sources are also modified to avoid deadlock.

Regards,
Zhou Renjian

Zhou Renjian

unread,
Jun 27, 2013, 10:02:26 AM6/27/13
to java2...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages