Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse JDT LS » how to create demo for Organize imports
how to create demo for Organize imports [message #1830691] Fri, 31 July 2020 14:30
Sebastien Dionne is currently offline Sebastien DionneFriend
Messages: 1
Registered: July 2020
Junior Member
I'm looking for a sample / demo that call eclipse.jdt.ls from command line or better from maven. I want to to be able to apply the command "Organize imports" for my source code from the command line.

I cloned eclipse-jdt-ls repository and did this :

./mvnw clean verify -DskipTests=true -Pserver-distro
I unpack the .gz file and launched it with this command line

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044 -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar ./plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar -configuration ./config_win -data ./path/to/data --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED


I have a console this that :

C:\dev\jdk11\bin\java -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Xmx1G -jar C:/test/jdt-language-server/plugins/org.eclipse.equinox.launcher_1.5.700.v20200207-2156.jar -configuration C:/test/jdt-language-server/config_win --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -data .\workspace\
Content-Length: 133

{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"31 juill. 2020 09 h 31 min 32 s Main thread is waiting"}}

but I don't know what to do from that.
Goto Forum:
  


Current Time: Sat Nov 11 05:58:09 GMT 2023

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

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

Back to the top