try to compile a .java file into .class file with javac command in prompt. but I got the error, " package com.hp.hpl.jena.rdf.model*; not exist."
here is the command I am using:
javac -classpath /lib/* Sample2.java
which should load all .jars under folder of lib into classpath.
here is the code inside Sample2.java
import com.hp.hpl.jena.rdf.model.*;
public class Sample2 extends Object{
public String name;
public static String sayHello(String name) {
Model model = ModelFactory.createDefaultModel();
return "Hello, " + name + "!";
}
}
How can I fix this problem, any help will be appreciate!