[linux] Linux Disk Cache & Java Programma

lnx lnx op kpnmail.nl
Do Feb 22 22:43:13 CET 2018


On 22/02/18 22:19, Daniel C. von Asmuth wrote:
> Aldus schreef lnx op Thu, Feb 22, 2018 at 09:59:06PM +0100:

,knip.

> Compileert gewoon bij mij.

Waar haal jij *javac* vandaan?


> 
>> Echter het compileren hiervan lukt niet:
>>
>> $ javacc Hello.java
>> Java Compiler Compiler Version 5.0 (Parser Generator)
>> (type "javacc" with no arguments for help)
>> Reading from file Hello.java . . .
>> org.javacc.parser.ParseException: Encountered " "class" "class "" at
>> line 1, column 1.
>> Was expecting:
>>     "PARSER_BEGIN" ...
>>
>> Detected 1 errors and 0 warnings.
> 
> Ik denk dat gij bedoeldet
> $ javac Hello.java

Ja dat had ik al geprobeerd:

$ javac Hello.java
No command 'javac' found, did you mean:
 Command 'javab' from package 'f2j' (non-free)
 Command 'javacc' from package 'javacc' (main)
javac: command not found


Toen heb ik javacc geinstalleerd:

$ sudo apt-get install javacc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  javacc-doc
The following NEW packages will be installed:
  javacc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 285 kB of archives.
After this operation, 389 kB of additional disk space will be used.
Get:1 http://ftp.nl.debian.org/debian/ jessie/main javacc all 5.0-5 [285 kB]
Fetched 285 kB in 0s (357 kB/s)
Selecting previously unselected package javacc.
(Reading database ... 204274 files and directories currently installed.)
Preparing to unpack .../archives/javacc_5.0-5_all.deb ...
Unpacking javacc (5.0-5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up javacc (5.0-5) ...


......en toen lukt het nog niet!

Fred


PS. public voor class zetten geeft dezelfde error-melding


Meer informatie over de Linux maillijst