JOGL errors on compilation - java

I am working with JOGL and it stopped working completely.
These are the errors i get:
Texture01.java:27: error: cannot access WriteCloneable
canvas = new GLCanvas(glcapabilities);
^
class file for com.jogamp.common.type.WriteCloneable not found
.\Texture01_GLEventListener.java:2: error: package com.jogamp.common.nio does not exist
import com.jogamp.common.nio.*;
^
.\Texture01_GLEventListener.java:136: error: cannot find symbol
FloatBuffer fb = Buffers.newDirectFloatBuffer(vertices);
^
symbol: variable Buffers
location: class Texture01_GLEventListener
.\Texture01_GLEventListener.java:163: error: cannot find symbol
IntBuffer ib = Buffers.newDirectIntBuffer(indices);
^
symbol: variable Buffers
location: class Texture01_GLEventListener
4 errors
The Path and Classpath variables are correct, I reinstalled JDK and JOGL2 but still get an error with WriteClonable and com.jogamp.common.nio.*
Any help is appreciated!

Related

Vscode says "package org.apache.pdfbox.preflight does not exist" even though I imported it

I have attached a photo of my code and the error that I am receiving. There isn't the red underline so I am not sure why it cannot find the package.
enter image description here
import org.apache.pdfbox.preflight.Validator_A1b;
^
Validator.java:6: error: cannot find symbol
Validator_A1b.main(new String[]{"xml", "/Users/ainscore/hms-hbs-reports/reports/2018/aicad/HMS_AICAD_print.pdf"});
^
symbol: variable Validator_A1b
location: class Validator```

Gauge Failed to start gauge API: Error occurred while waiting for runner process to finish

I'm quite new to gauge and have problems running a set of gauge tests. When I try to gauge run I get the following console output:
src\main\java\de\...\qa\Common.java:3: error: package com.github.....gauge.graphql does not exist
import com.github.....gauge.graphql.GraphqlSetup;
^
symbol: class VariableStorage
location: class Pricing
src\main\java\de\...\qa\testcraft\GaugeTestCraft.java:3: error: package com.github.....gauge.random.data does not exist
import com.github.....gauge.random.data.VariableStorage;
^
src\main\java\de\...\qa\testcraft\TestCraftExecutor.java:4: error: package org.tinylog does not exist
import org.tinylog.Logger;
^
src\test\java\de\...\qa\PricingTest.java:8: error: package org.junit.jupiter.api does not exist
import org.junit.jupiter.api.Test;
^
src\test\java\de\...\qa\PricingTest.java:9: error: package org.yaml.snakeyaml does not exist
import org.yaml.snakeyaml.Yaml;
^
src\test\java\de\...\qa\TestVariableStorage.java:3: error: package com.github.....gauge.random.data does not exist
import com.github.....gauge.random.data.VariableStorage;
^
src\test\java\de\...\qa\TestVariableStorage.java:9: error: cannot find symbol
public class TestVariableStorage implements VariableStorage {
^
symbol: class VariableStorage
src\test\java\de\...\qa\PricingTest.java:26: error: cannot find symbol
#Test
^
symbol: class Test
location: class PricingTest
src\test\java\de\...\qa\PricingTest.java:33: error: cannot find symbol
#Test
^
symbol: variable Logger
location: class TestCraftExecutor
src\test\java\de\...\qa\TestVariableStorage.java:12: error: method does not override or implement a method from a supertype
#Override
^
src\test\java\de\...\qa\TestVariableStorage.java:17: error: method does not override or implement a method from a supertype
#Override
^
src\test\java\de\...\qa\TestVariableStorage.java:22: error: method does not override or implement a method from a supertype
#Override
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
55 errors
Error occurred while waiting for runner process to finish.
Error : exit status 1
Error ----------------------------------
[Gauge]
Failed to start gauge API: Error occurred while waiting for runner process to finish.
Error : exit status 1
Get Support ----------------------------
Docs: https://docs.gauge.org
Bugs: https://github.com/getgauge/gauge/issues
Chat: https://spectrum.chat/gauge
Your Environment Information -----------
windows, 1.1.1, 6e0d83f
html-report (4.0.12), java (0.7.9), python (0.3.11), screenshot (0.0.1), xml-report (0.2.3)
Does someone know how this happens and how to solve it? Here are some additional informations:
Java version:14.0.2
Gauge version: 1.1.1
Maven version: 3.6.3
I just resolve the problem.
You should check your project's gauge.log. The Traceback is in the file, that will help you.
Don`t see the output, it will not work.

cannot find symbol symbol: class Base64 location: package java.util

I followed this tutorial to show web cam with the help of server.
But , It not done.
error
Error:(5, 17) java: cannot find symbol
symbol: class Base64
location: package java.util
Error:(93, 45) java: cannot find symbol
symbol: variable Base64
location: class WebcamWebSocketHandler
Why this error occurs?
Error:(5, 17) java: cannot find symbol
symbol: class Base64
location: package java.util
line 5 import java.util.Base64;
Error:(93, 45) java: cannot find symbol
symbol: variable Base64
location: class WebcamWebSocketHandler
Line 93 base64 = new String(Base64.getEncoder().encode(baos.toByteArray()), "UTF8");
code
error at line 93
I am using java 14.
How can I solve this error?

Sublime Text and java project on Mac

I am trying to make Sublime work with Java. I know there is a lot of tutorials but all of them for Windows. I was going through this one but it is for processing and it doesn't work wit imports. http://blog.boreal-kiss.net/2012/10/27/processing-with-sublime-text-2/
I am just starting with Java and using ACMStarterProject with acm.jar.
http://www.stanford.edu/class/archive/cs/cs106a/cs106a.1124/assignments.html
What I want:
use sublime to build and run
use imports and package libraries
use java 7
I think I need to write a skript and make some changes to JavaC.sublime-build?
Thanks
Here is what I get in console:
Users/romangorshkov/Documents/Eclipse/workspace/ACMStarterProject/CircleArea.java:8: error: package acm.program does not exist
import acm.program.*;
^
/Users/romangorshkov/Documents/Eclipse/workspace/ACMStarterProject/CircleArea.java:11: error: cannot find symbol
public class CircleArea extends ConsoleProgram {
^
symbol: class ConsoleProgram
/Users/romangorshkov/Documents/Eclipse/workspace/ACMStarterProject/CircleArea.java:16: error: cannot find symbol
println("This program calculates a circle area.");
^
symbol: method println(String)
location: class CircleArea
/Users/romangorshkov/Documents/Eclipse/workspace/ACMStarterProject/CircleArea.java:17: error: cannot find symbol
int r = readInt("Enter circle radius: ");
^
symbol: method readInt(String)
location: class CircleArea
/Users/romangorshkov/Documents/Eclipse/workspace/ACMStarterProject/CircleArea.java:20: error: cannot find symbol
println("Circle area is: " +area);
^
symbol: method println(String)
location: class CircleArea
5 errors
[Finished in 2.2s with exit code 1]
[shell_cmd: javac "/Users/romangorshkov/Documents/Eclipse/workspace/ACMStarterProject/CircleArea.java"]
[dir: /Users/romangorshkov/Documents/Eclipse/workspace/ACMStarterProject]
[path: /usr/bin:/bin:/usr/sbin:/sbin]

"error: package org.apache.commons.math3.random does not exist"?

I'm trying to compile a java code as in the following line :
javac -classpath /Users/tim/kws/code/library:/Users/moab/kws/code/commons-cli-1.2/commons-cli-1.2.jar:/Users/tim/kws/code/commons-math-2.2/commons-math-2.2.jar:/Users/tim/kws/code/common-math3-3.1.1/commons-math3-3.1.1.jar RATSWriteLandmarksFromPfile.java
/Users/tim/kws/code/library/ppm/types/LabelPfile.java:17: error: package org.apache.commons.math3.random does not exist
import org.apache.commons.math3.random.RandomDataImpl;
^
/Users/tim/kws/code/library/ppm/types/LabelPfile.java:50: error: cannot find symbol
private RandomDataImpl randomData_;
^
symbol: class RandomDataImpl
location: class LabelPfile
/Users/tim/kws/code/library/ppm/types/LabelPfile.java:321: error: cannot find symbol
randomData_ = new RandomDataImpl();
^
symbol: class RandomDataImpl
location: class LabelPfile
3 errors
does anybody know why am I getting these errors ?
Seems like you are missing the commons-math3 library.

Categories

Resources