Se corrige un error y se sube un ejecutable

This commit is contained in:
Ryuuji159
2016-11-02 06:31:45 +01:00
parent 786b3925fb
commit 2a97a81749
7 changed files with 16 additions and 7 deletions
Executable
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+9
View File
@@ -0,0 +1,9 @@
package main;
public class Main
{
public static void main(String[] args)
{
visual.Login login = new visual.Login();
}
}
+6 -2
View File
@@ -34,10 +34,14 @@ public class Archivo
String os = System.getProperty("os.name");
if (os.contains("Windows"))
{
ruta = "C:\\P.A.M\\" + archivo;
ruta = "C:\\P.A.M\\";
new File(ruta).mkdir();
ruta+= archivo;
} else if (os.contains("Linux"))
{
ruta = System.getProperty("user.home") + "/P.A.M/" + archivo;
ruta = System.getProperty("user.home") + "/P.A.M/";
new File(ruta).mkdir();
ruta += archivo;
}
return ruta;
}
-4
View File
@@ -181,9 +181,5 @@ public class Login{
Registro registro = new Registro();
frame.dispose();
}
public static void main(String args[]) {
Login ventana = new Login();
}
}