Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java gpu problem. #86

Closed
abrazuze opened this issue Aug 10, 2015 · 11 comments
Closed

Java gpu problem. #86

abrazuze opened this issue Aug 10, 2015 · 11 comments

Comments

@abrazuze
Copy link

The problem with this launcher is if you dont set the dedicated GPU as default for all programs, he use the integrated graphic card in every case.

Can you solve this problem?

ps: in NVIDIA control panel i have defined java (32-64bit) default with my dedicated card.

pps: no, i cant set nvidia gpu as default for all programs.

@sk89q
Copy link
Member

sk89q commented Aug 10, 2015

Have you tried setting the Java path in the launcher?

@abrazuze
Copy link
Author

Yes, but it does not work.

@sk89q
Copy link
Member

sk89q commented Aug 11, 2015

And you don't have this problem with the MC launcher?

@abrazuze
Copy link
Author

No, this is the problem.

@abrazuze
Copy link
Author

I do not know what java uses.

In Java path must be: C:\Program Files\Java\jre1.8.0_51 without \bin ? If yes, not work and i have tried to add \bin but nothing.

@abrazuze
Copy link
Author

How you can see in this screen http://prntscr.com/83hb2g, in game uses java 1.8 64Bit (see the graphic card) but in NVIDIA control panel there aren't events of java...

@sk89q
Copy link
Member

sk89q commented Aug 11, 2015

The launcher adds/removes bin/ for you so it doesn't matter.

When you add java, do you add it from the list or with "Browse" (or whatever it is in Italian)?

And did you add "javaw.exe" or "java.exe"?

@abrazuze
Copy link
Author

With "Browse", but if i start a game that use java, it appears in the list. I added "javaw.exe"

@abrazuze
Copy link
Author

Do you already have a theory?

@sk89q
Copy link
Member

sk89q commented Aug 12, 2015

Do you have the launcher's source code?

If yes, try replacing the contents of src/main/java/com/skcraft/launcher/launch/JavaProcessBuilder.java with this:
http://www.hastebin.com/raw/pilonemuri

Recompile and see if it works. I changed it to run jawaw.exe instead of java.exe.

@abrazuze
Copy link
Author

Its perfect. Thank you (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants