Bonjour à tous,
je souhaiterais savoir comment procéder pour définir le CLASSPATH sous Linux ?
sous Windows ,suffit...
Code : Sélectionner tout - Visualiser dans une fenêtre à part set CLASSPATH=.
sous Linux, j'ai l'impression quen'est pas suffisant pour éviter une erreur lors de la compilation d'une classe utilisant une autre classe du même répertoire.
Code : Sélectionner tout - Visualiser dans une fenêtre à part set env CLASSPATH=.
Merci d'avance
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 E:\workspace\CursoJavaSE\src\excepcion>javac Prueba.java Prueba.java:20: cannot find symbol symbol : class Punto location: class excepcion.Prueba Punto a = new Punto(1,4); ^ Prueba.java:20: cannot find symbol symbol : class Punto location: class excepcion.Prueba Punto a = new Punto(1,4); ^ Prueba.java:22: cannot find symbol symbol : class Punto location: class excepcion.Prueba a = new Punto(-2, 4); ^ Prueba.java:24: cannot find symbol symbol : class ErrConst location: class excepcion.Prueba } catch (ErrConst e) { ^ 4 errors
Partager