Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.class
Empty file.
Empty file.
Binary file removed tutorPoint/build/classes/FileReceiver.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$1.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$2.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$3.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$4.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$5.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$6.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$7.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$8.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/player$9.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/studentHome$1.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/studentHome$2.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/studentHome$3.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/studentHome$4.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/studentHome$5.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/studentHome$6.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/studentHome$7.class
Binary file not shown.
Binary file removed tutorPoint/build/classes/studentHome$8.class
Binary file not shown.
Binary file not shown.
Binary file removed tutorPoint/build/classes/tutorpoint/ListenThread.class
Binary file not shown.
Binary file modified tutorPoint/build/classes/tutorpoint/listenThread.class
Binary file not shown.
3 changes: 3 additions & 0 deletions tutorPoint/config.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#TutorPoint Properties
user=root
password=uselesscoder
2 changes: 1 addition & 1 deletion tutorPoint/nbproject/private/private.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ do.jar=true
file.reference.mysql-connector-java-5.1.39-bin.jar=/media/abhey/Windows/UselessCoder/Softablitz/mysql-connector-java-5.1.9.jar
javac.debug=true
javadoc.preview=true
user.properties.file=/home/abhey/.netbeans/8.2/build.properties
user.properties.file=/home/shrey/.netbeans/8.2/build.properties
18 changes: 17 additions & 1 deletion tutorPoint/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@ dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.jna-4.1.0.jar=/home/abhey/Downloads/vlcj-3.10.1/jna-4.1.0.jar
file.reference.jna-4.1.0.jar-1=../Dependency/vlcj-3.10.1/jna-4.1.0.jar
file.reference.jna-platform-4.1.0.jar=/home/abhey/Downloads/vlcj-3.10.1/jna-platform-4.1.0.jar
file.reference.jna-platform-4.1.0.jar-1=../Dependency/vlcj-3.10.1/jna-platform-4.1.0.jar
file.reference.mysql-connector-java-5.1.39-bin.jar=/Users/Avishek/Downloads/mysql-connector-java-5.1.39/mysql-connector-java-5.1.39-bin.jar
file.reference.slf4j-api-1.7.10.jar=../Dependency/vlcj-3.10.1/slf4j-api-1.7.10.jar
file.reference.vlcj-3.10.1-javadoc.jar=/home/abhey/Downloads/vlcj-3.10.1/vlcj-3.10.1-javadoc.jar
file.reference.vlcj-3.10.1-javadoc.jar-1=../Dependency/vlcj-3.10.1/vlcj-3.10.1-javadoc.jar
file.reference.vlcj-3.10.1-sources.jar=/home/abhey/Downloads/vlcj-3.10.1/vlcj-3.10.1-sources.jar
file.reference.vlcj-3.10.1-sources.jar-1=../Dependency/vlcj-3.10.1/vlcj-3.10.1-sources.jar
file.reference.vlcj-3.10.1-test-sources.jar=/home/abhey/Downloads/vlcj-3.10.1/vlcj-3.10.1-test-sources.jar
file.reference.vlcj-3.10.1-test-sources.jar-1=../Dependency/vlcj-3.10.1/vlcj-3.10.1-test-sources.jar
file.reference.vlcj-3.10.1-tests.jar=/home/abhey/Downloads/vlcj-3.10.1/vlcj-3.10.1-tests.jar
file.reference.vlcj-3.10.1-tests.jar-1=../Dependency/vlcj-3.10.1/vlcj-3.10.1-tests.jar
file.reference.vlcj-3.10.1.jar=/home/abhey/Downloads/vlcj-3.10.1/vlcj-3.10.1.jar
file.reference.vlcj-3.10.1.jar-1=../Dependency/vlcj-3.10.1/vlcj-3.10.1.jar
includes=**
jar.compress=false
javac.classpath=\
Expand All @@ -49,7 +57,15 @@ javac.classpath=\
${file.reference.vlcj-3.10.1-tests.jar}:\
${file.reference.vlcj-3.10.1.jar}:\
${libs.swing-layout.classpath}:\
${libs.absolutelayout.classpath}
${libs.absolutelayout.classpath}:\
${file.reference.jna-4.1.0.jar-1}:\
${file.reference.jna-platform-4.1.0.jar-1}:\
${file.reference.slf4j-api-1.7.10.jar}:\
${file.reference.vlcj-3.10.1-javadoc.jar-1}:\
${file.reference.vlcj-3.10.1-sources.jar-1}:\
${file.reference.vlcj-3.10.1-test-sources.jar-1}:\
${file.reference.vlcj-3.10.1-tests.jar-1}:\
${file.reference.vlcj-3.10.1.jar-1}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
Expand Down
54 changes: 54 additions & 0 deletions tutorPoint/src/tutorpoint/GetPropertiesValues.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package tutorpoint;


import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author shrey
*/
public class GetPropertiesValues {
static Properties properties;
public static void getPropValues() throws IOException{
FileReader fileReader;
properties=new Properties();
String propFileName = "config.properties";
fileReader=new FileReader(propFileName);
if (fileReader!=null){
try {
properties.load(fileReader);
} catch (IOException e) {
e.printStackTrace();
}
}
else
throw new FileNotFoundException("File Not Found");
}
public static String getUserName(){
try {
getPropValues();
} catch (IOException e) {
e.printStackTrace();
}
String user= properties.getProperty("user");
return user;
}
public static String getMysqlPassword(){
try {
getPropValues();
} catch (IOException e) {
e.printStackTrace();
}
String password= properties.getProperty("password");
return password;
}
}
2 changes: 1 addition & 1 deletion tutorPoint/src/tutorpoint/server.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private static InetAddress getFirstNonLoopbackAddress(boolean preferIpv4, boolea
class listenThread extends Thread{

public java.net.Socket sock;
public static final Connection c = mySqlConnect.connection("root","uselesscoder");
public static final Connection c = mySqlConnect.connection(GetPropertiesValues.getUserName(),GetPropertiesValues.getMysqlPassword());

public listenThread(Socket sock){
this.sock = sock;
Expand Down