Erfan-Shooraj / ifc2b3dm

MIT License
69 stars 35 forks source link

Dependency test runs great but not Ifcconverter. #7

Closed geolocus closed 5 years ago

geolocus commented 5 years ago

Dependency test runs great but not Ifcconverter. Maven script creates project in Bimserver.

Ifc converter Main.java still cannot reach Bimclient: Error: Unable to initialize main class ifcconverter.Main Caused by: java.lang.NoClassDefFoundError: BimServerClient

Maven dependencys pom files on both accurately the same.

Bimserver 1.5.147

JDK12

Eclipse Modeling Tools

Version: 2019-03 (4.11.0) Build id: 20190314-1200

Erfan-Shooraj commented 5 years ago

I think it's because you need to use JDK8

https://github.com/opensourceBIM/BIMserver/wiki/Requirements-1.5

geolocus commented 5 years ago

I think its either problem with JDK and Eclipse, Eclipse and Bimserver or JDK and Bimserver. Which setup of versions runs on your machine?

Gauti „Outlook“, skirtą „Android“

On Thu, Jun 6, 2019 at 7:13 AM +0200, "Erfan-Shooraj" notifications@github.com wrote:

I think it's because you need to use JDK8

https://github.com/opensourceBIM/BIMserver/wiki/Requirements-1.5

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Erfan-Shooraj commented 5 years ago

You should set the JRE in eclipse to 1.8. That's the version I'm using and I can connect to BimServer running locally.

Also, if you change the version in pom file make sure it's the exact same as the one in your BimServerClientLib pom file with the ending SNAPSHOT if there is one.

geolocus commented 5 years ago

Your eclipse is latest release?

Gauti „Outlook“, skirtą „Android“

On Thu, Jun 6, 2019 at 12:45 PM +0200, "Erfan-Shooraj" notifications@github.com wrote:

You should set the JRE in eclipse to 1.8. That's the version I'm using and I can connect to BimServer running locally.

Also, if you change the version in pom file make sure it's the exact same as the one in your BimServerClientLib pom file with the ending SNAPSHOT if there is one.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Erfan-Shooraj commented 5 years ago

No but eclipse version shouldn't be your problem. You can try running the project as maven build. even if the build fails it can resolve the dependencies from pom file

geolocus commented 5 years ago

Ifc2b3dm as Maven?

Gauti „Outlook“, skirtą „Android“

On Thu, Jun 6, 2019 at 2:17 PM +0200, "Erfan-Shooraj" notifications@github.com wrote:

No but eclipse version shouldn't be your problem. You can try running the project as maven build. even if the build fails it can resolve the dependencies from pom file

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Erfan-Shooraj commented 5 years ago

yes

geolocus commented 5 years ago

262182 java.io.FileNotFoundException: C:\bin\IfcOpenShell-masterlabamba\labamba.json (The system cannot find the file specified) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:213) at java.base/java.io.FileInputStream.(FileInputStream.java:155) at java.base/java.io.FileInputStream.(FileInputStream.java:110) at java.base/java.io.FileReader.(FileReader.java:60) at ifcconverter.Main.main(Main.java:82)

everything worked what you have mentioned, but now Im here.

Erfan-Shooraj commented 5 years ago

Seems like you don't have the json file of your project in your converter folder. Just download your model as json and put it in the converter folder. It should solve the error.

You can also uncomment the downprojectjson line on line 63 but sometimes it doesn't work