Questions tagged [javac]

javac is the primary Java compiler, included in the Java Development Kit (JDK) from Sun Microsystems (now Oracle), and also in versions from other vendors.

javac is the primary Java compiler, included in the Java Development Kit (JDK) from Sun Microsystems (now Oracle), and also in versions from other vendors.

The compiler accepts source code conforming to the Java language specification (JLS) and produces bytecode conforming to the Java Virtual Machine Specification (JVMS). javac is itself written in Java. The compiler can also be invoked programmatically.

2467 questions
0
votes
3 answers

Dependency problems with my ANT script

I'm having problems building my project, using an Ant script, from the command prompt using Ant itself. It can't find a certain import for a particular Java file in my project (which has nearly 5,000 source files as it is). The import is included in…
Monster
  • 1,573
  • 6
  • 23
  • 35
0
votes
1 answer

porting javac and dx to android

Hi i'm planning on porting the javac compiler and dx converter to android..Is this going to be a trivial Task or are there any major Roadblocks? My idea is to create an app so that people can compile java source code in the android devices and maybe…
user1124403
0
votes
2 answers

How to compile java files for minecraft with command prompt, separately from minecraft

So, I'm actually coding primarily in python, but I need to do one thing in java, and having no java experience, I'm really not understanding how this works. My program creates java files, then compiles them with command prompt, and puts them into…
Lemony Lime
  • 1,113
  • 3
  • 11
  • 12
0
votes
4 answers

Trouble when trying to compile a .java file through javac

When trying to run the following command to compile some_file.java in Windows javac -classpath "some_class_path" "some_file.java" it fails, telling me I didn't pass it any source files. If instead I make cd "some_class_path" javac -classpath…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
0
votes
1 answer

Getting CLASSPATH from environment in ant build.xml

How can I get the CLASSPATH from the environment in a build.xml? I've tried
OregonTrail
  • 8,594
  • 7
  • 43
  • 58
0
votes
2 answers

javac will not compile enum, ( Windows Sun 1.6 --> OpenJDK 1.6)

package com.scheduler.process; public class Process { public enum state { NOT_SUBMITTED, SUBMITTED, BLOCKED, READY, RUNNING, COMPLETED } private state currentState; public state getCurrentState() { return…
avgvstvs
  • 6,196
  • 6
  • 43
  • 74
0
votes
1 answer

javac: package org.apache.derby.client.am does not exist

I'm trying to compile a java program that is using JavaDB/Derby. On the command line I can run java org.apache.derby.tools.sysinfo without errors, but the following line in several of the files causes the error in my question title: import…
tvanc
  • 3,807
  • 3
  • 25
  • 40
0
votes
1 answer

Java compile error in Ant: using class literals in annotations

I have the following Java annotation on a class (it's for a myBatis plugin): @Intercepts({ @Signature(type = ResultSetHandler.class, method = "handleResultSets", args = (Statement.class)) }) public class MyResultSetHandlerPlugin implements…
holic87
  • 791
  • 2
  • 17
  • 29
0
votes
2 answers

Trouble installing Boilerpipe

This is the third time I've installed it. I had it working on Windows, and up until a few days ago on Linux. I've done all I can do and I don't understand how to run this Java program. The source code is a folder with a lib, src some jars and a…
user723220
  • 817
  • 3
  • 12
  • 20
0
votes
2 answers

Issues linking external jar file, despite many trials

So I'm pretty sure I looked as well as I could before asking this question, so here goes. I am writing a Java class for RC4 encryption, I'd like to make use of the Files class in Google Guava. I am compiling using javac on the Ubuntu command line. I…
Poken1151
  • 570
  • 5
  • 20
0
votes
1 answer

Compilation error - Tomcat, jsp

All, I just installed apache tomcat and testing the installtion did show the "Successfully installed" apache page. I did execute the HelloWorld example without any issues. So now, I created my own web application under…
name_masked
  • 9,544
  • 41
  • 118
  • 172
0
votes
2 answers

ANT Javac and special characters

I have an ANT task defined like so:
Mossie
  • 66
  • 5
0
votes
3 answers

Compiled Interfaces in Java

I just found this out and I'm hoping someone has a clue as to what's going on. Commands to follow (run this in a temp directory, clearing everything beforehand): No problems: cat << EOF > Myface.java public interface Myface {} EOF cat << EOF >…
Stefan Mai
  • 23,367
  • 6
  • 55
  • 61
0
votes
0 answers

Error when upgrading to Expo 43: Execution failed for task ':expo:compileDebugJavaWithJavac'

I'm in the process of upgrading my Expo project to version 43, and I've encountered an issue during the build process. When I run expo build:android, I'm getting the error: `Execution failed for task ':expo:compileDebugJavaWithJavac'. I've checked…
0
votes
1 answer

what happens between static and dynamic polymorphism

can't really find the proper answer. if we have: 1.Animal cat = new Cat(); 2.Animal animal = new Animal(); Animal and Cat both has method makeSound(); 1.as I understand early binding in Java happens during compile time and method call is bound…
Ivs
  • 13
  • 2