I followed the instructions in -help java- to create an example file, "test.java" with Stata's example code. Now, I'm trying to compile "test.java" to a JAR file from the Windows command line, using javac:
This throws numerous errors, the first of which is
I'm guessing this is because the Java compiler isn't finding Stata's packages, although the directory I added to the classpath contains "stata-sfi.jar", "libdeps-core.jar", and "libstata-core.jar". I'm using a Windows 7 x64 system, Stata 14 MP, and the 64-bit JDK v 1.8.0_66.
What am I doing wrong? How do I compile a Java plugin for Stata?
Thank you!
Code:
javac -classpath "C:\Program Files (x86)\Stata14\ado\base\jar" test.java
Code:
test.java:3: error: package com.stata.sfi does not exist import com.stata.sfi.*; ^
What am I doing wrong? How do I compile a Java plugin for Stata?
Thank you!
Comment