netty
netty
JCHJava Community | Help. Code. Learn.
Created by LeoMisfit on 10/27/2024 in #java-help
Need help converting Java file to Class.
I do not know brother because I do not know what modpack you are using
17 replies
JCHJava Community | Help. Code. Learn.
Created by LeoMisfit on 10/27/2024 in #java-help
Need help converting Java file to Class.
You would likely take the whole source code of the modpack containing the main class and recompile it after editing the class file you would like to change
17 replies
JCHJava Community | Help. Code. Learn.
Created by LeoMisfit on 10/27/2024 in #java-help
Need help converting Java file to Class.
you just do javac ResourceCosts.java but this will not work as your class does not have a main attribute
17 replies
JCHJava Community | Help. Code. Learn.
Created by LeoMisfit on 10/27/2024 in #java-help
Need help converting Java file to Class.
a .jar is already the compiled version of your projects structure
17 replies
JCHJava Community | Help. Code. Learn.
Created by LeoMisfit on 10/27/2024 in #java-help
Need help converting Java file to Class.
And normally if you are messing with modpacks, you do not modify the source code at all
17 replies
JCHJava Community | Help. Code. Learn.
Created by LeoMisfit on 10/27/2024 in #java-help
Need help converting Java file to Class.
General compiling is done by using javac FILENAME.java
17 replies
JCHJava Community | Help. Code. Learn.
Created by LeoMisfit on 10/27/2024 in #java-help
Need help converting Java file to Class.
or pom
17 replies
JCHJava Community | Help. Code. Learn.
Created by LeoMisfit on 10/27/2024 in #java-help
Need help converting Java file to Class.
Not possible without the main class basically
17 replies
JCHJava Community | Help. Code. Learn.
Created by brian on 10/3/2024 in #java-help
homework please help easy
To a) you can possibly not even solve this without the task itself judging just by the given question, you could create getters and setters to obtain the value with the Default Constructor which you create an object of. To b) it depends on what you would like to do, if you would like to create an object / reference, without setting a value, the constructor is still needed, if this is not the case you do not need it anymore as you can just use the parameter constructor.
8 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 7/22/2024 in #java-help
apache Mina sshd
@Peter Rader
11 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 7/22/2024 in #java-help
apache Mina sshd
I can send source code but its like 4 classes or 5
11 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 7/22/2024 in #java-help
apache Mina sshd
or here idk
11 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 7/22/2024 in #java-help
apache Mina sshd
Can you check in dms maybe+
11 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 7/12/2024 in #java-help
When vThreads in Eclipse
oh it already does, it was just bugged i think wtf
7 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 6/7/2024 in #java-help
Apache Mina SSHD server
can you send it
6 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 6/4/2024 in #java-help
Apache Mina weird session behaviour
I dont understand why its doing that as there is no NewLine anywhere
5 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 5/27/2024 in #java-help
Java mina sshd
package src;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.apache.sshd.common.cipher.BuiltinCiphers;
import org.apache.sshd.common.util.GenericUtils;
import org.apache.sshd.server.SshServer;
import org.apache.sshd.server.shell.ProcessShellFactory;

public class Main {

public static void main(String[] args) throws IOException {

SshServer sshd = SshServer.setUpDefaultServer();
sshd.setPort(999);

sshd.setCipherFactories(Arrays.asList(BuiltinCiphers.aes256ctr, BuiltinCiphers.aes192ctr, BuiltinCiphers.aes128ctr));
/* sshd.setPasswordAuthenticator(new MyPasswordAuthenticator());
sshd.setPublickeyAuthenticator(new MyPublickeyAuthenticator());
sshd.setKeyboardInteractiveAuthenticator(new MyKeyboardInteractiveAuthenticator()); */
sshd.start();

}


}
package src;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.apache.sshd.common.cipher.BuiltinCiphers;
import org.apache.sshd.common.util.GenericUtils;
import org.apache.sshd.server.SshServer;
import org.apache.sshd.server.shell.ProcessShellFactory;

public class Main {

public static void main(String[] args) throws IOException {

SshServer sshd = SshServer.setUpDefaultServer();
sshd.setPort(999);

sshd.setCipherFactories(Arrays.asList(BuiltinCiphers.aes256ctr, BuiltinCiphers.aes192ctr, BuiltinCiphers.aes128ctr));
/* sshd.setPasswordAuthenticator(new MyPasswordAuthenticator());
sshd.setPublickeyAuthenticator(new MyPublickeyAuthenticator());
sshd.setKeyboardInteractiveAuthenticator(new MyKeyboardInteractiveAuthenticator()); */
sshd.start();

}


}
Help??
6 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 5/19/2024 in #java-help
Java send data through serverSocket
you just use a telnet client or telnet command to use it
7 replies
JCHJava Community | Help. Code. Learn.
Created by netty on 5/19/2024 in #java-help
Java send data through serverSocket
Cuz you dont need code to connect to the socket
7 replies