Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
135 views
in Technique[技术] by (71.8m points)

java - Cannot install GLSP server from Mac terminal

I am trying to run the glsp-server by following this tutorial: https://github.com/eclipse-glsp/glsp#building-and-running-the-glsp-backend

I am currently in this step:

cd examples/org.eclipse.glsp.example.workflow/target

java -jar org.eclipse.glsp.example.workflow-X.X.X-SNAPSHOT-glsp.jar org.eclipse.glsp.example.workflow.launch.ExampleServerLauncher

The version of the snapshot is 0.9.0 which I found when searching the list of the target folder. However, when I run this on Mac terminal I get:

root ERROR Uncaught Exception:  Error: Could not launch GLSP server. The given jar path is not valid: /Users/mlj01/Desktop/eclipse-glsp/glsp-theia-integration/examples/workflow-theia/server/org.eclipse.glsp.example.workflow-0.9.0-SNAPSHOT-glsp.jar

On that folder I have a download.ts file with the following code:

import { join, resolve } from "path";

const downloadDir = resolve(join(__dirname));
const mavenRepository = "https://oss.sonatype.org/content/repositories/snapshots/";
const groupId = "org.eclipse.glsp.example";
const artifactId = "org.eclipse.glsp.example.workflow";
const version = "0.9.0";
const classifier = "glsp";

console.log("Downloading latest version of the Workflow Example Java Server from the maven repository...");
download({ groupId, artifactId, version, classifier, isSnapShot: true }, downloadDir, mavenRepository)
    .then(() => console.log("Download completed. Start the Theia back-end using these commands: 
cd examples/browser-app
yarn start

"
        + "After starting the Theia back-end, access the following link locally in your browser to see the running example:
"
        + "http://localhost:3000"));```

Any idea?

Thank you! 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...