Deprecated: Return type of ExplodeIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/utils/StringUtils.php on line 576

Deprecated: Return type of ExplodeIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/utils/StringUtils.php on line 592

Deprecated: Return type of ExplodeIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/utils/StringUtils.php on line 611

Deprecated: Return type of ExplodeIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/utils/StringUtils.php on line 558

Deprecated: Return type of ResultWrapper::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/db/DatabaseUtility.php on line 197

Deprecated: Return type of ResultWrapper::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/db/DatabaseUtility.php on line 215

Deprecated: Return type of ResultWrapper::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/db/DatabaseUtility.php on line 208

Deprecated: Return type of ResultWrapper::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/db/DatabaseUtility.php on line 225

Deprecated: Return type of ResultWrapper::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/db/DatabaseUtility.php on line 186

Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/WebResponse.php on line 37

Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/WebResponse.php on line 37

Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/WebResponse.php on line 37
https://www.jpct.net/wiki/api.php?action=feedcontributions&user=Bobson&feedformat=atom JPCT - User contributions [en] 2024-03-28T12:38:01Z User contributions MediaWiki 1.23.15 https://www.jpct.net/wiki/index.php?title=How_to_install How to install 2012-11-13T02:22:06Z <p>Bobson: </p> <hr /> <div>=== How to install ===<br /> <br /> There isn&#039;t much to install. The 3D engine itself is one jar only (jpct.jar). It can be found in the distribution&#039;s lib-directory. Just include that jar into your classpath and you are ready to compile and/or run jPCT applications. When using the hardware renderers, you have to include some [http://lwjgl.org LJWGL] jars in addition. jPCT based applications require the lwjgl.jar and the lwjgl_util.jar.<br /> Both are included in the distribution and can be found in the lib-directory as well. In addition, you have to specify the location of the native components that LWJGL uses to access the hardware. Under Windows, these are so called DLLs, under Linux SOs etc.<br /> To include them, the easiest way is to specify the java library path. On the command line, this is done by adding a -Djava.library.path-parameter to your command. For example<br /> <br /> &lt;code&gt;<br /> java -classpath jpct.jar;lwjgl.jar;lwjgl_util.jar;myJar.jar &#039;&#039;&#039;-Djava.library.path=path_to_the_native_stuff&#039;&#039;&#039; MyTest<br /> &lt;/code&gt;<br /> <br /> if the native components are located in the directory &quot;path_to_the_native_stuff&quot;. Please note that you only have to specify the directory, not the files themselves (this is different compared to the classpath-paramater).<br /> <br /> In Eclipse, you can add the -Djava...line in the &quot;VM Arguments&quot; textbox of your &quot;Arguments&quot; tab in the Run Configuration of your application. Another option is to add the three jar files you need (jpct.jar; lwjgl.jar; lwjgl_util.jar;) to the Build Path. To access the Build Path right click on the package folder in the package explorer and select &quot;properties&quot;. In the package properties find the tab that says &quot;Java Build Path&quot;, and navigate to the &quot;Libraries&quot; window. To add the .jar files simply click on the &quot;Add External JARs&quot; button, and navigate to the folder location of the jPCT .jar files.<br /> <br /> [[File:BuildPath.png]]<br /> <br /> If you want to use javadoc and native libraries in your IDE, configure path to it like this.<br /> <br /> [[File:Build_path.png]]<br /> <br /> After configuring this, you should be able to compile and start any jPCT based application.<br /> <br /> If the application can start but stops running immediately afterwards, check the application’s log files. If the error is java.lang.NoClassFoundError, the solution is simple. A folder in the jpct application package titled “lib” needs to be renamed “libs”. After renaming this folder the application should work. <br /> <br /> If you going to use jPCT&#039;s JOGL-support instead of LWJGL, don&#039;t add the LWJGL jars but the ones from JOGL instead and add the glfacade.jar in addition (it comes with the distribution of jPCT in the jogl-subdir of the lib-dir).</div> Bobson https://www.jpct.net/wiki/index.php?title=File:Build_path.png File:Build path.png 2012-11-13T02:21:51Z <p>Bobson: </p> <hr /> <div></div> Bobson
Deprecated: header(): Passing null to parameter #3 ($response_code) of type int is deprecated in /zstore/backups/cn10/home/ws10522/public_html/wiki/includes/WebResponse.php on line 37