D
D
daMage2014-09-03 12:10:15
Java
daMage, 2014-09-03 12:10:15

Why can't it find the package?

Hello. Gives an error when trying to include a .jar file.

javac App.java
java -cp .:libs/mysql-connector-java-5.1.32-bin.jar:libs/Rootbeer-1.2.0.jar App

App.java:5: error: package org.trifort.rootbeer.runtime does not exist
The package exists, opened it with the archive manager and looked at the path. What could be wrong?
Directory structure with base class
java
-App.java
-libs

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
balza, 2014-09-03
@balza

> The package exists, opened the archive manager and looked at the path. What could be wrong?
It seems to me that in your Rootbeer.jar there are not compiled files (.class), but source codes (.java)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question