Hello,
(using Elements v.10.0.0.2461)
trying to declare and use some global variables for the purpose of generating a native DLL from the Java code. Here’s my code, which gives the error messages:
package TestClassLibrary;
public class DriverClass
{public boolean initialized = false; boolean initialize() { initialized = true; } boolean isInitialized() { return initialized; }
}
private int SomeX = 1;
private DriverClass driver;
public int InitializeDriver()
{
driver = new DriverClass();
return driver.initialize() ? 0 : -1;
}public void DriverProc()
{
// do nothing
}
Getting the compiler error “opening parenthesis or less expected, got assign” on the line “private int SomeX = 1;”. Commenting out this line gives the same error on the “DriverClass driver” declaration.
I tried several modifications of those lines (like not initializing the variable, changing its type etc) - this doesn’t make anything.