Бля, захотел поучить джаву и сразу обосрался. Хули тут не так? Все переписано с урока 1 в 1. Почему ошибка? Объясните дураку
>>139330409 (OP)Пакет укажи. Классы существуют в пакетах.
>>139330409 (OP)Название файла должно совпадать с именем публичного класса.Переименуй файл hello.java в HelloWorld.java
>>139330666Не обязательно.
>>139330409 (OP)Один из самых ебанутых языковВообще хз, почему он стал так популярен
>>139331364Почему ебанутых?
Java это про то как написать 100 строк кода за день, которые нихуя не делают и получить 10к рублей. Любой другой популярный язык - про то как решить задачу.
>>139331996Что тогда? Шарп?
>>139330409 (OP)Переходи на плюсы, у нас нет такого говна как в яве.
>>139332276Не хочу ебаться с утекающей памятью и указателями на указатели на указатели на массивы указателей.
>>139330409 (OP)Учи Rust
>>139330705Вот так? Не помогло, все равно ошибка
>>139332956Вон ссылка Setup SDK. Ало.
>>139330409 (OP)>>139330666>>139330705Вы че, совсем тупые?
>>139330409 (OP)SDK скачай, поехавший. Хотя какая тебе джава, если ты читать не умеешь. Забудь, не взлетит.
Написано же епт, что SDK не указан.Зайди в настройки проекта и пропиши. быть программистом - не твоё
>>139330409 (OP)В настройках путь к сдк укажи, дурень.
>>139330409 (OP)Решу эту задачу за 200 руб, обращайтесь
>>139332276Ага.Как насчет пакетного менеджера? ENJOY YOUR MAKEFILE.
>>139330409 (OP)Если смотреть в корень, ошибка в использовании IDE вместо блокнота и консольного компилятора. Эти штуки - для сверхсложных проектов и понтов.
>>139330409 (OP)Project sdk not defined.идешь в настройки проекта, ставишь чему равно jdk.
>>139331996> Java это про то как написать 100 строк кода за день, которые нихуя не делаютЧем подкрепишь свои слова?
>>139330409 (OP)>>139333362Ор выше гор
>>139333472> ЯП> пакетный менеджерВы там совсем ебнулись?
>>139333865>рассматривать язык программирования отдельно от инфраструктурыНу, если писать Хеллоуворлды и калькуляторы на уроках информатики, то да, на весь сопутствующий обвес языка можно не обращать внимания.
>>139333949Вебмакака незаметна. Ты вообще в курсе, что пакетами должны управлять пакетные менеджеры из оси?
>>139334034должны лично тебе?
>>139334034А ты у нас, видимо, embedded ninja. Мань, если ты знаешь, как на языке написать КУРКУЛЯТОР, это не значит, что ты знаешь язык.
Приложение не запускается@На компе нет даже jre@Я не тупой, это язык кривой
>>139332516>Не хочу ебаться с утекающей памятью и указателями на указатели на указатели на массивы указателей.За то яву заебешься чистить от мусора.Не почистишь разок - гроб, гроб, кладбище, пидор!
>>139335746што ты там чистить собрался?
>>139335848Будет System.gc() вызывать, лол.
>>139332276Открою секрет. Плюсы в энтерпрайзе нахуй не нужны. Совсем.А энтерпрайз это то за что платят деньги.
>>139332516Ты забыл про темплэйты. Вот уж где самый пиздец скрывается.
>>139336299Скажи это моему начальнику, лол. Он хочет дохуя суперпроизводительный сервер на плюсах и сейчас ищет под это человека. Я ему говорю, что это не взлетит, но он мне не верит. Правда, это говностартап и все равно не взлетит, но я хотя бы пытаюсь сделать так, чтобы он сам не вбивал гвоздь в гроб проекта.
>>139336580а деньги когда закончатся?
>>139336409In file included from /usr/include/c++/4.6/algorithm:63:0, from error_code.cpp:2:/usr/include/c++/4.6/bits/stl_algo.h: In function ‘_RandomAccessIterator std::__find(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator, std::vector > >, _Tp = int]’:/usr/include/c++/4.6/bits/stl_algo.h:4403:45: instantiated from ‘_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator, std::vector > >, _Tp = int]’error_code.cpp:8:89: instantiated from here/usr/include/c++/4.6/bits/stl_algo.h:162:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator [with _Iterator = std::vector, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:162:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:4403:45: instantiated from ‘_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator, std::vector > >, _Tp = int]’error_code.cpp:8:89: instantiated from here/usr/include/c++/4.6/bits/stl_algo.h:166:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator [with _Iterator = std::vector, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:166:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:170:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator [with _Iterator = std::vector, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:170:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:174:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator [with _Iterator = std::vector, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:174:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:182:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator [with _Iterator = std::vector, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:182:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:186:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator [with _Iterator = std::vector, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:186:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_algo.h:190:4: error: no match for ‘operator==’ in ‘__first.__gnu_cxx::__normal_iterator::operator [with _Iterator = std::vector*, _Container = std::vector >, __gnu_cxx::__normal_iterator::reference = std::vector&]() == __val’/usr/include/c++/4.6/bits/stl_algo.h:190:4: note: candidates are:/usr/include/c++/4.6/bits/stl_pair.h:201:5: note: template bool std::operator==(const std::pair&, const std::pair&)/usr/include/c++/4.6/bits/stl_iterator.h:285:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:335:5: note: template bool std::operator==(const std::reverse_iterator&, const std::reverse_iterator&)/usr/include/c++/4.6/bits/allocator.h:122:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/allocator.h:127:5: note: template bool std::operator==(const std::allocator&, const std::allocator&)/usr/include/c++/4.6/bits/stl_vector.h:1273:5: note: template bool std::operator==(const std::vector&, const std::vector&)/usr/include/c++/4.6/ext/new_allocator.h:123:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::new_allocator&, const __gnu_cxx::new_allocator&)/usr/include/c++/4.6/bits/stl_iterator.h:805:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)/usr/include/c++/4.6/bits/stl_iterator.h:799:5: note: template bool __gnu_cxx::operator==(const __gnu_cxx::__normal_iterator&, const __gnu_cxx::__normal_iterator&)
>>139336780Чет проиграл
>>139336671Тогда я найду другое место работы.
>>139336671А насчет срока - хуй знает, пока вроде кто-то даже проинвестировал нас.
>>139336877ну тогда развлекайтесь. а зачем один очень производительный сервер, если можно 10 не таких производительных? все равно бесконечно в одну машину впихивтаь не получится.
>>139336991>один очень производительный серверЧтобы когда он падает, всё нахуй слетало.
>>139336991Да хуй его знает. Мне вообще кажется, что начальник, честно говоря, слабо представляет, как это вообще должно в итоге работать. Он хуярил раньше вроде какие-то встроенные системы, то есть это С и все такое. Так поначалу, когда мы пилили сервер для прототипа, он дал мне указание запилить его на С. Я ему сразу сказал, что получится залупа, он сказал, мол, давай сначала проверим. Ну через несколько дней ебания когда он спросил, мол, как продвигается, я ему объяснил, что я заебался malloc-ом туда-сюда хуярить строки и для каждой простой вещи искать ебаную библиотеку, он призадумался и сказал "так и быть, пили на чем хочешь", главное, чтобы быстро работало.
>>139337399какая область вообще?
>>139337517В подробностях сказать не могу, но примерно - почти реалтайм(на самом деле, должно быть реалтайм, но какой реалтайм, когда у тебя на руках Андроид с мобильным интернетом) обмен геолокацией между мобильниками для кое-каких вещей.
>>139337696>для кое-каких вещеймобильные приложения для гомиков?
>>139337882Именно, реалтайм поиск гомосексуалистов рядом с тобой. При помощи акселерометра определяем количество фрикций до эуякуляции и рекомендуем самых стойких. Обязательно дам тебе знать, когда зарелизим, я уверен, тебе оно нужно.
>>139332956HelloWorld.javaРасширение забыл
>>139337978Хм, а ведь интересная идея.
>>139330409 (OP) хуле ты вкатываешся в эту залупу? Что ты собираешся делать с этим языком? Он не нужен совершенно. JS осваивай. Сейчас на нём можно делать всё: десктоп, серверы, приложения для браузера, интерфейсы и даже графиний.