CupCarbon icon indicating copy to clipboard operation
CupCarbon copied to clipboard

Installation

Open Asky-M opened this issue 7 years ago • 13 comments

how to install in linux?

Asky-M avatar Mar 16 '17 07:03 Asky-M

Any news about this?

nkaramolegos avatar Oct 31 '17 16:10 nkaramolegos

@Asky-M do you need to compile it from source or install directly using executable jar ?

lrmodesgh avatar Jan 11 '18 09:01 lrmodesgh

Is it possible to use it on Windows?

lgblkb avatar Jan 17 '18 08:01 lgblkb

I did not find the jar file to execute. but I think, I have to compile from the source code to be able to use it. I see in the license, this application is under the GPL. thanks for respons. by the way, let me know if this application can already be used for linux.

Copyright (C) 2013-2018 CupCarbon —---------------------------------------------------------------------------------— Laboratory Lab-STICC CNRS UMR 6285 University of Bretagne Occidentale - UBO —---------------------------------------------------------------------------------— CupCarbon V 3.8 (U-ONE): A Smart City & IoT Wireless Sensor Network Simulator SenScript V 3.4 —---------------------------------------------------------------------------------— www.cupcarbon.com —---------------------------------------------------------------------------------— This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

Asky-M avatar Jan 20 '18 19:01 Asky-M

@Asky-M , @nkaramolegos, @lrmodesgh this runs on Linux. I'm on Ubuntu 16.10.

With Java installed, first of all simply extract the downloaded zip file. Then, go to the folder directory where the jar file is present and execute. From the command line, this would be java -jar cupcarbon.jar

jatanvyas avatar Jan 25 '18 06:01 jatanvyas

@jatanvyas It gave me error as: Error: Could not find or load main class cupcarbon.CupCarbon

surbhandari avatar Feb 05 '18 22:02 surbhandari

@surbhandari @jatanvyas it works fine with all gnu/linux distros. as the installation page says, install java (i have openjdk8), and jfx (i have openjfx). then it works.

i got the same error, and after installing openjfx it worked. i tested in fedora, mint, ubuntu, debian, solus...

lrmodesgh avatar Feb 10 '18 07:02 lrmodesgh

@Asky-M if you like to compile from source, use Eclipse, but do not forget to install scene builder.

lrmodesgh avatar Feb 10 '18 08:02 lrmodesgh

Precisely, @lrmodesgh

jatanvyas avatar Feb 25 '18 12:02 jatanvyas

Hi peers, those who have updated their gnu/linux distros, and face with the following problem :

 Error: Could not find or load main class cupcarbon.CupCarbon
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

issue: java 11 seems not yet update with the javafx package required for cupcarbon or scenebuilder.

Thus first install openjdk-8 and openjfx as required.

Then use: sudo update-alternatives --config java

to choose the openjdk8, as shown below:

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in manual mode

Then try relaunching :
`java -jar cupcarbon.jar`

lrmodesgh avatar Oct 19 '18 12:10 lrmodesgh

Hi peers, those who have updated their gnu/linux distros, and face with the following problem :

 Error: Could not find or load main class cupcarbon.CupCarbon
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

issue: java 11 seems not yet update with the javafx package required for cupcarbon or scenebuilder.

Thus first install openjdk-8 and openjfx as required.

Then use: sudo update-alternatives --config java

to choose the openjdk8, as shown below:

There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1101      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in manual mode

Then try relaunching :
`java -jar cupcarbon.jar`

(Ubuntu 18.04) Did everything by instruction - still can see line: Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

line with error dissapeared only: Error: Could not find or load main class cupcarbon.CupCarbon

Did all my best in order to install the aplication on this version of ubuntu - nothing works even tried installing openjfx ver: openjfx_8u60-b27-4

as it was on my ubuntu 16, nothing works

Kroha1999 avatar May 13 '19 01:05 Kroha1999

This issue can be fixed by adding the openjfx path and modules as arguments when running the javafx application, I already posted the solution on this link. Good luck Lotfi

hocinilotfi avatar Sep 15 '19 18:09 hocinilotfi

I need a java code of distributed system 3 peers aplicación and coordinator .

AhmedMohy99 avatar May 04 '20 03:05 AhmedMohy99