This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jpcsp problem :c
#2
sorry for double post but if you want more information look at this:

@echo off
rem CD to the path of the command line, this is required when running as an administrator
cd /D "%~dp0"

set PATH=%PATH%;lib\;lib\windows-x86\

if NOT EXIST "%SystemRoot%\SysWOW64" goto JAVA32
set key=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment
goto JAVA

:JAVA32
set key=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment

:JAVA
set JAVA_CMD=%ProgramFiles%\Java\jre7\bin\java.exe
if not exist "%JAVA_CMD%" set JAVA_CMD=java.exe

rem Checking if the "reg" command is available
reg /? >NUL 2>NUL
if ERRORLEVEL 1 goto RUN

set JAVA_VERSION=
set JAVA_HOME=
for /f "tokens=3* skip=2" %%a in ('reg query "%key%" /v CurrentVersion') do set JAVA_VERSION=%%a
for /f "tokens=2* skip=2" %%a in ('reg query "%key%\%JAVA_VERSION%" /v JavaHome') do set JAVA_HOME=%%b

set JAVA_CMD=%JAVA_HOME%\bin\java.exe
if not exist "%JAVA_CMD%" goto JAVAMISSING

:RUN

rem Use -Xmx768m for Windows XP, -Xmx1024m for all other Windows versions
set MAX_MEM_SIZE=1024m
ver | findstr "5\.1\." > nul
if %ERRORLEVEL% EQU 0 set MAX_MEM_SIZE=768m

echo Running Jpcsp 32bit...
"%JAVA_CMD%" -Xmx512m -Xss2m -XX:MaxPermSize=128m -XX:ReservedCodeCacheSize=64m -Djava.library.path=lib/windows-x86 -jar bin/jpcsp.jar %*
if ERRORLEVEL 1 goto PAUSE
goto END

:JAVAMISSING
echo The required version of Java has not been installed or isn't recognized.
echo Go to
echo http://www.oracle.com/technetwork/java/j...index.html
echo to install the "Windows x86" Java JRE.

TongueAUSE
pause

:END

(sorry idk how this works :c so tell me if something is wrong in this)
Reply


Messages In This Thread
Jpcsp problem :c - by AxlDrako - 06-30-2013, 11:42 PM
RE: Jpcsp problem :c - by AxlDrako - 07-01-2013, 01:52 PM
RE: Jpcsp problem :c - by hell321 - 07-23-2013, 03:02 PM
RE: Jpcsp problem :c - by montcer9012 - 07-24-2013, 11:25 PM
RE: Jpcsp problem :c - by nickblame - 07-26-2013, 06:18 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)