Skip to main content

All Questions

0 votes
1 answer
350 views

Unable to build ANTLR4 on Ubuntu due to `package is not visible` errors

I'm trying to build ANTLR4 on Ubuntu using maven: mvn install -DskipTests but it throws the following errors: CommentHasStringValueProcessor.java:[9,27] package com.sun.tools.javac.main is not ...
Ivan Kochurkin's user avatar
0 votes
1 answer
80 views

Can't properly set PATH variable on linux for Java programs

I'm new at linux and java programming, I've been trying to run a test program but the only way for it to work is overwriting entirely the PATH. This is the path I've set in the .bashrc: export PATH=:/...
Entropy99's user avatar
1 vote
1 answer
304 views

GCJ throws error: "Undefined reference to main" when compiling

I´d wanted to compile a simple Java "Hello World" program like it was repesented on the GeeksforGeeks Hello World Tutorial, by using gcj in Linux Ubuntu. This is the source code: class HelloWorld { ...
RobertS supports Monica Cellio's user avatar
1 vote
1 answer
273 views

Java Compiler API (Linux): cannot find symbol for custom classes

I have a rather specific problem with the Java Compiler API. For my Usecase I have to generate, compile and load a java-class at runtime in my Web-Application (using Tomcat). In order to do that, I ...
Jo_Nathan's user avatar
0 votes
1 answer
302 views

javac issues compiling source code [duplicate]

I'm trying to compile a Java source code with javac in a Linux terminal allocated in a machine that I have not permission to modify its Java version. Now it has 1.7.0_111 version, and the result I ...
giorgioW's user avatar
  • 331
-1 votes
1 answer
152 views

Can't get project that uses JUnit4 to work in IntelliJ Idea

I have a very simple project with the following structure: myProject --src --rectangles --Utils --Main --test --rectangles --Tests I've marked the folders accordingly, added the ...
David's user avatar
  • 457
1 vote
1 answer
198 views

Can't compile GWT application on AWS instance (Linux)

I'm getting an error when trying to compile a GWT application on an AWS EC2 Instance under AMI Linux. I already installed Java and have it in directory /usr/lib/jvm/java-1.7.0-openjdk.x86_64. I also ...
fsinisi90's user avatar
  • 1,158
1 vote
1 answer
655 views

(Java) "error: cannot find symbol" when compiling?

This is the first time I'm coding in Linux, I'm used with writing in Windows. So my problem: I have a map called Train, in there I have two classes: Train.java and Lab1.java. When I try to compile(...
CJR's user avatar
  • 3,592
0 votes
1 answer
620 views

Compilation error java hadoop program [closed]

I wrote this Java hadoop program which will execute parallel indexation of files.The file was created in eclipse package org.myorg; import java.io.*; import java.util.*; import org.apache.hadoop.fs....
user1730626's user avatar
1 vote
4 answers
6k views

how to import jar files in linux machine

I am trying to run a Java program on Linux machine, that includes: import javax.mail.*; I have included mail.jar into myjdk/lib. Even on compiling it shows errors like javax.mail does not exist ...
atul's user avatar
  • 233
16 votes
8 answers
16k views

@Override compile error, implementing an interface (eclipse jdk1.6.0_23 linux)

I am getting compile errors in eclipse when using the @Override annotation for a class that is implementing an interface. Compiler compliance level is set to Java 6.0. I am using the latest version ...
jsoc's user avatar
  • 431