feeds | |
Споделете с приятел. | Споделете форума В,,, с,,,в,,,е,,,т,,,а,,, н,,,а,,, CAD/CAM/CAE/PLM i Вашия форум за социално споделяне |
Април 2024 | Нед | Пон | Вто | Сря | Чет | Пет | Съб |
---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | Календар |
|
| | J-Link: Compile Your Pro/ENGINEER Java Application with Intralink! | |
| | Автор | Съобщение |
---|
Admin Admin
Брой мнения : 797 Местожителство : София, България Job/hobbies : CAD/CAM специалист Reputation : 3 Points : 8007 Registration date : 27.03.2008
| Заглавие: J-Link: Compile Your Pro/ENGINEER Java Application with Intralink! Вто 13 Май - 15:05:19 | |
| 28, 2008 J-Link: Compile Your Pro/ENGINEER Java Application with Intralink! If you've wanted to try some Pro/ENGINEER programming using J-Link (the free Java API), but didn't know how to compile your program, then this article is for you. Forget Netbeans, forget Eclipse, and forget downloading and installing the JDK. Just use Intralink's Java Runtime Environment to compile your apps.
Seriously though, those IDE's are really great programs, but sometimes you can't install them, or they're not available on your system, or you just need something minimal and fast. Fortunately, Intralink contains everything we need to compile J-Link applications: a JRE and tools.jar. tools.jar is the codebase from Javasoft that contains Java compilation code.
Here is a batch file that will compile J-Link Java code on Windows:
@echo offrem jlink_javac.bat - Compile JLink Apps using Intralink JDKset Proe_Install_Dir=c:\ptc\proeWildfire2.0_m200set IL_Install_Dir=c:\ptc\proiclient3.3_m021set CLASSPATH=%IL_Install_Dir%\i486_nt\lib\tools.jarset path=%IL_Install_Dir%\i486_nt\jre\bin;%path%java sun.tools.javac.Main -classpath %Proe_Install_Dir%\text\java\pfc.jar -d . %* Run it like this:
jlink_javac.bat Abc.java Def.java Ghi.java
Here is a C shell script that will compile J-Link Java code on Unix:
#!/bin/csh# jlink_javac.csh - Compile JLink Apps using Intralink JDKsetenv Proe_Install_Dir /opt/proeWildfire2.0_m200setenv IL_Install_Dir /opt/proiclient3.3_m021setenv CLASSPATH $IL_Install_Dir/sun4_solaris/lib/tools.jarset path=( $IL_Install_Dir/sun4_solaris/jre/bin $path )java sun.tools.javac.Main -classpath $Proe_Install_Dir/text/java/pfc.jar -d . $* Run it like this:
jlink_javac.csh Abc.java Def.java Ghi.java
The resulting class files will be in the current directory. While I do use this for my own J-Link code which is typically targeted at Java 1.4.2, it may not work with newer Java versions, nor take advantage of their full capabilities. However, for you command line junkies out there, this is just the recipe. | |
| | | | J-Link: Compile Your Pro/ENGINEER Java Application with Intralink! | |
|
Similar topics | |
|
| Права за този форум: | Не Можете да отговаряте на темите
| |
| |
| |