It is currently 17 May 2022, 8:29 Advanced search

Java setup

Questions and answers on how to best use Instant Developer

Java setup

Postby jacobe » 9 August 2013, 20:15

Are there any instructions for setting up in a Java enviroment with Windows?

I've followed a video at http://doc.instantdeveloper.com/eng/VICJavaInst.htm, but using current versions (ie. Tomcat 7.0.42, ant 1.9.2, JDK 1.7.0_25).

Tomcat is working, I can log in to the manager. Ant and JDK both have their enviroment and path variables set correctly.

When I try to compile some of the sample applications I get errors like:

Code: Select all
S - -10000 - ANT returned 1: command ={"C:\Program Files (x86)\Apache Software Foundation\apache-ant-1.9.2\bin\ant.bat"  -logfile errors.txt "-DIJLIB=C:\Program Files (x86)\INDE\CURRENT\Lib" "-DTOMCAT=C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0" "-Dtomcat.shared.lib=C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0" "-Dtomcat.common.lib=C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0" "-Dtomcat.lib=C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\lib" deploy}, directory={c:\program files (x86)\inde\examples\checkers\servlet\}
S - 1817 - 1817 - Error while compiling Java code


I feel like I'm missing a step, but I'm not sure what it is.

Thanks,
Jacob
jacobe
 
Posts: 34
Joined: 9 August 2013, 14:08
Location: Orlando, FL USA

Re: Java setup

Postby jacobe » 15 August 2013, 19:25

Nobody is using the Java version?
jacobe
 
Posts: 34
Joined: 9 August 2013, 14:08
Location: Orlando, FL USA

Re: Java setup

Postby john w » 15 August 2013, 21:02

I am not sure if this is an in.de question or a java on windows question? Not being a java user do you have it properly set up on your windows machine? You may want to pm David M. I know he has done a fair amount of work with Apache, etc.
Regards

John W
User avatar
john w
 
Posts: 681
Joined: 24 October 2012, 16:29
Location: Apple Valley, Minnesota USA

Re: Java setup

Postby jacobe » 15 August 2013, 21:39

I do have Java properly set up (from a Windows and Java perspective). I can compile Java programs just fine using Eclipse.

However, I cannot get Instant Developer to compile to Java. I'm not trying to do anything complicated, just compile the examples to Java.

The error messages aren't really telling me much about what the problem is:
S - 1817 - 1817 - Error while compiling Java code.

The only Java documentation seems to be few notes on the In.De Java setup screen and a partial translation of an old In.De video.
jacobe
 
Posts: 34
Joined: 9 August 2013, 14:08
Location: Orlando, FL USA

Re: Java setup

Postby davem » 15 August 2013, 23:13

I apologize for my sketchy appearances, but finising a good sized app and "you know what" and a bigger one just came in. Also waiting to get in.de paid for in another week or so to get started on it as well.

I believe there are some .js files you will need to copy over from in.de to make it work for you. Not 100% sure of that, but will research it a bit.

I have installed tomcat a few times and I have a windows server waiting plus a linux host on standby to try everything out.
User avatar
davem
 
Posts: 27
Joined: 8 April 2013, 22:53
Location: Hudson, FL USA

Re: Java setup

Postby davem » 15 August 2013, 23:31

You will need an interpreter, but you may find the answer here
viewtopic.php?f=5&t=7979&p=19635&hilit=+java+deploy+&sid=3358d54952481af1bfdee23177eace5c#p19635

I took time and looked at the first response.

I hope this helps because I will be crossing some of this shortly as well.

Dave
User avatar
davem
 
Posts: 27
Joined: 8 April 2013, 22:53
Location: Hudson, FL USA

Re: Java setup

Postby jacobe » 20 August 2013, 14:15

Dave,

I still can't get it to work. I even installed In.De on a fresh Windows 7 computer. There's something missing and I don't know what. The Italian side of the documentation has a lot more information including release notes. I read through every forum post that mentioned Java (using a translator) - some of it seemed relevant, but again it's like something is missing (some of the posts referred to help documents which I could not find).
jacobe
 
Posts: 34
Joined: 9 August 2013, 14:08
Location: Orlando, FL USA

Re: Java setup

Postby jacobe » 21 August 2013, 4:17

I have been able to get Java to work, here are the steps I used:

  1. Run INDE in Administrator mode
  2. Stop Tomcat
  3. Compile project
  4. Start Tomcat
  5. Launch project
The key was to make sure Tomcat was stopped before compiling.

Obviously, something is still not configured correctly, script-manager is setup in Tomcat, so INDE should be able to control Tomcat.

If someone from Pro Gramma could post a list of configuration instructions for Java, I would appreciate it!
jacobe
 
Posts: 34
Joined: 9 August 2013, 14:08
Location: Orlando, FL USA

Re: Java setup

Postby lucabaldini » 21 August 2013, 6:58

Hi, if you get the error 1817 it means that there are compilation errors.
When In.de compiles a Java servlet it produces a file that is called errors.txt that you can find in the application's output directory.
You can open that file and look what is inside... there you could find some hints.

You can also open that file by double clicking the message on the message windows inside In.de. That sould launch notepad.exe with the content of that file.

Could you please attach that file to this thread so I can look at it and try to help?
User avatar
lucabaldini
Pro Gamma
Pro Gamma
 
Posts: 4841
Joined: 1 October 2010, 17:03
Location: Bologna

Re: Java setup

Postby jacobe » 22 August 2013, 6:41

The problem seems to be a bug in INDE.

INDE requires a file named "RELEASE-NOTES" in the Tomcat installation folder. INDE uses this file to determine what version of Tomcat is installed.

However, this file is NOT present in the current Windows Installer version of Tomcat and must be created (there is a webapps/ROOT/RELEASE-NOTES.txt which can be copied, but it must be renamed "RELEASE-NOTES").

Once the file is created, everything works great. The error 1817 is misleading, as there is no problem compiling Java.

Doing a google search, it would seem the preferred way to get the Tomcat version on Windows would be with:
Code: Select all
java.exe -cp lib\catalina.jar org.apache.catalina.util.ServerInfo
or
http://localhost:8080/manager/text/serverinfo


DaveM:
Your link suggestion was actually correct. My mistake was I copied the file as RELEASE-NOTES.txt (as that was how it was named in the distribution) instead of renaming it to just RELEASE-NOTES!!
jacobe
 
Posts: 34
Joined: 9 August 2013, 14:08
Location: Orlando, FL USA

Next

Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests