Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java command line parameters for Eclipse-IDE(How to suppress the upscaling in Eclipse)
Java command line parameters for Eclipse-IDE [message #1791862] Fri, 06 July 2018 09:47 Go to next message
Oliver Ried is currently offline Oliver RiedFriend
Messages: 4
Registered: August 2014
Junior Member
I have updated from Eclipse 4.4.2 to 4.7.3 and the new version appears "bigger" than the old one (fonts and graphics).
I have "upscaled" my resolution in Windows, but this never had an impact on Eclipse.
I know that Java 9 (and higher) "include" the Windows-upscaling, but I am using Java 8.
It seems that the newer versions of Eclipse are influenced by the Windows-upscaling.

Is it possible to start Eclipse with the command line parameter -Dsun.java2d.uiScale=1.0 to suppress the new scaling?
I have tried to put this parameter at the start of eclipse, but the following does not work:

eclipse.exe -vm -Dsun.java2d.uiScale=1.0 C:\jdk1.8.0_172\bin\javaw -vmargs -Xms1024m -Xmx1024m
eclipse.exe -Dsun.java2d.uiScale=1.0 -vm C:\jdk1.8.0_172\bin\javaw -vmargs -Xms1024m -Xmx1024m

I have searched a lot but I found only descriptions how to modify the command line parameter from eclipse applications (Run-menu), but I do not want to set the run-options of my applications. I want to set the start-options from eclipse itself.

Is it possible to apply the parameter -Dsun.java2d.uiScale=1.0 on the Eclipse-IDE?
Re: Java command line parameters for Eclipse-IDE [message #1791869 is a reply to message #1791862] Fri, 06 July 2018 11:01 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29545
Registered: July 2009
Senior Member
Adding -Dswt.autoScale=false should do the trick. Have a look at this answer for details:

https://www.eclipse.org/forums/index.php?t=msg&th=1094012&goto=1791530&#msg_1791530
Re: Java command line parameters for Eclipse-IDE [message #1791871 is a reply to message #1791869] Fri, 06 July 2018 11:07 Go to previous message
Oliver Ried is currently offline Oliver RiedFriend
Messages: 4
Registered: August 2014
Junior Member
Thank you. That's great!
Previous Topic:No JavaFX
Next Topic:builtin bug reporter: "server workload limit reached"
Goto Forum:
  


Current Time: Fri Sep 21 21:07:18 GMT 2018

Powered by FUDForum. Page generated in 0.02029 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top